This article intends to highlight the advantage of GraphQL over REST as a preffered choice of interface endpoint implementation.
1 Like
I have a problem to call graphql query.
In Body sending as: {
“query”: "query($first:Integer, $lastCursor:String, $catalogueRef: String!){
variantProducts(catalogue: {ref: $catalogueRef}, first:$first, after:$lastCursor){
pageInfo{
hasNextPage
}
edges{
cursor
node{
product{
name
}
ref
status
attributes{
name
type
value
}
}
}
}
}
,
“variables”: {
“first”:10,
“lastCursor”: null,
“catalogueRef”:“COMPATIBILITY:1”
}
}
But receiving below error: com.wm.app.b2b.server.ServiceException: com.wm.util.coder.InvalidDatatypeException: [ISC.0076.9012] Invalid state. JSON input stream does not start with the “{” character.