Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.21 KB | None | 0 0
  1. "version": "2017-02-28",
  2. "operation": "GET",
  3. "path": "$indexPath.toLowerCase()",
  4. "params": {
  5. "body": {
  6. "query": {
  7. "bool" : {
  8. "must" : [
  9. { match : { "name": $ctx.args.params.name }},
  10. ],
  11. "filter" : {
  12. "geo_distance" : {
  13. "distance" : "${distance}km",
  14. "location" : $util.toJson($ctx.args.location)
  15. }
  16. }
  17. }
  18. }
  19. }
  20. }
  21.  
  22. input paramsStringFilterInput {
  23. ne: String
  24. eq: String
  25. match: String
  26. matchPhrase: String
  27. matchPhrasePrefix: String
  28. multiMatch: String
  29. exists: Boolean
  30. wildcard: String
  31. regexp: String
  32. }
  33.  
  34. input ParamsInput {
  35. name: paramsStringFilterInput
  36. monday: Boolean
  37. }
  38.  
  39. type ZVLConnection {
  40. items: [ZVL]
  41. total: Int
  42. nextToken: String
  43. }
  44.  
  45. type Query {
  46. nearbyZVL(params: ParamsInput, location: LocationInput!, km: Int): ZVLConnection
  47. }
  48.  
  49. query getProfiles{
  50. nearbyZVL(
  51. location: {
  52. lat:51.848388,
  53. lon: 5.447252
  54. },
  55. km: 12,
  56. params:{
  57. name: { match: "Ramon" }
  58. }
  59.  
  60. ){
  61. total,
  62. items {
  63. id
  64. name
  65. }
  66.  
  67. }
  68.  
  69. }
  70.  
  71. {
  72. "data": {
  73. "nearbyZVL": null
  74. },
  75. "errors": [
  76. {
  77. "path": [
  78. "nearbyZVL"
  79. ],
  80. "data": null,
  81. "errorType": "MappingTemplate",
  82. "errorInfo": null,
  83. "locations": [
  84. {
  85. "line": 2,
  86. "column": 3,
  87. "sourceName": null
  88. }
  89. ],
  90. "message": "Unable to parse the JSON document: 'Unexpected character ('m' (code 109)): was expecting double-quote to start field namen at [Source: (String)"n{n "version": "2017-02-28",n "operation": "GET",n "path": "/zorgverlener/doc/_search",n "params": {n "body": {n "query": {n "bool" : {n "must" : [n { match : { "name": Ramon }},n ],n "filter" : {n "geo_distance" : {n "distance" : "12km",n "location" : {"lat":51.848388,"lon":5.447252}n "[truncated 86 chars]; line: 11, column: 28]'"
  91. }
  92. ]
  93. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement