Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "version": "2017-02-28",
- "operation": "GET",
- "path": "$indexPath.toLowerCase()",
- "params": {
- "body": {
- "query": {
- "bool" : {
- "must" : [
- { match : { "name": $ctx.args.params.name }},
- ],
- "filter" : {
- "geo_distance" : {
- "distance" : "${distance}km",
- "location" : $util.toJson($ctx.args.location)
- }
- }
- }
- }
- }
- }
- input paramsStringFilterInput {
- ne: String
- eq: String
- match: String
- matchPhrase: String
- matchPhrasePrefix: String
- multiMatch: String
- exists: Boolean
- wildcard: String
- regexp: String
- }
- input ParamsInput {
- name: paramsStringFilterInput
- monday: Boolean
- }
- type ZVLConnection {
- items: [ZVL]
- total: Int
- nextToken: String
- }
- type Query {
- nearbyZVL(params: ParamsInput, location: LocationInput!, km: Int): ZVLConnection
- }
- query getProfiles{
- nearbyZVL(
- location: {
- lat:51.848388,
- lon: 5.447252
- },
- km: 12,
- params:{
- name: { match: "Ramon" }
- }
- ){
- total,
- items {
- id
- name
- }
- }
- }
- {
- "data": {
- "nearbyZVL": null
- },
- "errors": [
- {
- "path": [
- "nearbyZVL"
- ],
- "data": null,
- "errorType": "MappingTemplate",
- "errorInfo": null,
- "locations": [
- {
- "line": 2,
- "column": 3,
- "sourceName": null
- }
- ],
- "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]'"
- }
- ]
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement