Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync 2201.6.x to revamp-aws-azure-bbes branch #4387

Merged
merged 2 commits into from
May 3, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@ The `graphql:Service` allows adding interceptors for GraphQL requests to execute

>**Note:** A service can have zero or more interceptors.

::: code graphql_interceptors.bal :::
::: code graphql_service_interceptors.bal :::

Run the service by executing the following command.

::: out graphql_interceptors.server.out :::
::: out graphql_service_interceptors.server.out :::

Send the following document to the GraphQL endpoint to test the service.

::: code graphql_interceptors.graphql :::
::: code graphql_service_interceptors.graphql :::

To send the document, execute the following cURL command in a separate terminal.

::: out graphql_interceptors.client.out :::
::: out graphql_service_interceptors.client.out :::

>**Tip:** You can invoke the above service via the [GraphQL client](/learn/by-example/graphql-client-query-endpoint/).

Expand Down