GraphQL schema overview
Test Integrations and APIs supports the use of either the built-in GraphQL schemas or the GraphQL schemas that you import into Test Integrations and APIs when you want to test a GraphQL endpoint.
When you want to test a GraphQL endpoint in Test Integrations and APIs, you must have set up the GraphQL endpoint and configured an operation with a physical transport that connects to the application on which the GraphQL endpoint runs.
See the following tasks that you must perform before you can use the GraphQL schema in the messages in your tests:
- Creating an HTTP connection as a logical resource. See Creating logical HTTP connections.
- Creating a physical web server resource and bind it to the logical connection. See Creating physical web server resources.
- Create a service component. See Creating a service component.
- Create an operation. See Creating an operation.
- Creating tests by using message exchange pattern. See Creating a single test by using MEP.
- Creating messages and tests to test the GraphQL endpoint. You can read through the topics that are in the collection at Messages and create messages for your tests. Alternatively, you can create a blank message and apply the schema to it. See Applying schemas and formats to messages.
- Adding the GraphQL schemas that you want to use in your messages. See Adding GraphQL schemas.
- Applying the GraphQL schema to your messages. See Applying the GraphQL schema to a message.
- Editing messages that use the GraphQL schemas, if you want to change any of the preconfigured settings. See Editing GraphQL messages.
- Running tests. See Running or scheduling the running of a test.
Supported GraphQL operation types
The following GraphQL operation types are supported:
- Mutation
- Query
Restriction: The Subscription operation type of GraphQL is not supported in Test Integrations and APIs