Designer 10.7 | webMethods Service Development Help | Working with GraphQL Descriptors | Modifying Properties to the GraphQL Descriptor | How Integration Server Calculates the Query Parameters
 
How Integration Server Calculates the Query Parameters
How Integration Server calculates query complexity
In Integration Server, each field in the query is considered of complexity 1, so the total complexity for the following query is 6.
{
getUser{ --------------> 1
name --------------> 1
age --------------> 1
placeOfBirth --------------> 1
address{ --------------> 1
streeName --------------> 1
}
}
}
Note:
When you set the query parameters for the GraphQL descriptor, then the parameters become applicable for all the fields.
How Integration Server calculates query depth
Query depth is the total number of levels in the query. So the total depth for the following query is 3.
query { -----------> level 1
getUser { ------------> level 2
name
age
placeOfBirth
address { ------------> level 3
streeName
}
}
}