You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
recently we started using the dsg graphql implementation. Among other things, spatial objects in GeoJSON [4] format are provided via the interface. For this purpose, a Scalar Geometry was defined in the schema file. (see [0]). If a Geometry object is passed as GeoJSON in a mutation, error [1]+[5] occurs. the same error also occurs with the scalar data type JSON (graphql-java-extended-scalars) (see [2]+[3]+[5]).
imho it should be possible to specify the keys with quotation marks in a json scalar data type.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
hi,
recently we started using the dsg graphql implementation. Among other things, spatial objects in GeoJSON [4] format are provided via the interface. For this purpose, a Scalar Geometry was defined in the schema file. (see [0]). If a Geometry object is passed as GeoJSON in a mutation, error [1]+[5] occurs. the same error also occurs with the scalar data type JSON (graphql-java-extended-scalars) (see [2]+[3]+[5]).
imho it should be possible to specify the keys with quotation marks in a json scalar data type.
thanks in advance and best regards,
juergen
[0]
input SiteInput {
code: String!
name: String
typeId: ID
description: String
geoLocation: Geometry
elevation: ElevationInput
placementId: ID
externalIdentifiers: [ExternalIdentifierInput]
}
scalar Geometry
[1]
2022-02-21 10:03:45.708 WARN 31369 --- [nio-8080-exec-7] notprivacysafe.graphql.GraphQL : Query failed to parse : 'mutation{ createSite(input: {code:"WU_AW_014b", description:"desc", placementId: "1", geoLocation: {"type":"Point",coordinates:[1.0,1.0]}}){ id geoLocation }}'
[2]
test(input: JSON):Site
scalar JSON
[3]
2022-02-21 10:01:52.318 WARN 31369 --- [nio-8080-exec-4] notprivacysafe.graphql.GraphQL : Query failed to parse : 'mutation{ test(input: {code:"WU_AW_014b", description:"desc", placementId: "1", geoLocation: {"type":"Point",coordinates:[1.0,1.0]}}){ id geoLocation }}'
[4]
https://datatracker.ietf.org/doc/html/rfc7946
[5]
{
"errors": [
{
"message": "Invalid Syntax : offending token '"type"' at line 1 column 95",
"locations": [
{
"line": 1,
"column": 95
}
],
"extensions": {
"classification": "InvalidSyntax"
}
}
]
}
Beta Was this translation helpful? Give feedback.
All reactions