Implementation of GraphQL vs REST using Integration Server & webMethods Designer

This article intends to highlight the advantage of GraphQL over REST as a preffered choice of interface endpoint implementation.

Difference between GraphQL & REST using Integration Server & Designer.docx (791 KB)

GraphQL.zip (54.3 KB)

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.