Mocking requestsReferences
GraphQL
GraphqlConfig
Prop
Type
GraphQLRequestConfig
Prop
Type
GraphQLRouteConfig
There are 2 ways to specify a GraphQL route:
You can pass a queue field with an array of timed responses (for polling/queues):
Prop
Type
Or you can specify a single response with the data field:
Prop
Type
GraphqlDataResponse
Prop
Type
GraphQLSettings
Prop
Type
GraphQLOperationType
Operation types supported by GraphQL configs
type GraphQLOperationType = 'mutation' | 'query';GraphQLOperationName
Operation name
type GraphQLOperationName = string | RegExp;GraphQLEntitiesByEntityName
Record<'cookies' | 'headers' | 'query' | 'variables', GraphQLEntity>;