Software AG Products 10.7 | Integrating On-Premises and Cloud Applications | Service Development | Working with GraphQL Descriptors | Invoking a GraphQL Descriptor
 
Invoking a GraphQL Descriptor
 
Working with GET Request
Working with POST Request
How Integration Server Sends Response to a GraphQL Request
GraphQL request can be sent over HTTP, the supported http methods are GET and POST. If request is sent with any other method then Integration Server returns 405 Method Not Allowed response.
Note:
To execute GraphQL descriptor you must have Execute ACL permission for the GraphQL descriptor and resolver services.
GraphQL descriptor accepts three input parameters in request, these parameters are:
1. query: The query that needs to be executed.
2. variables: If the query has some substitutable variables, then Integration Server sets the values for those variables in this parameter.
3. operationName: If the query contains more than one query then this parameter contains the name of the operation that needs to be executed.
To invoke GraphQL descriptor, graphql directive needs to be used.
The following is the URL for GraphQL request:
http://<HOST>:<PORT>/graphql/<GRAPHQL_DESCRIPTOR_NS_NAME>