Skip to content

Commit cb8c0ad

Browse files
committed
test resolver
1 parent 4b0a77e commit cb8c0ad

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

articles/api-management/configure-graphql-resolver.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,17 @@ On the **Resolvers** tab:
7878

7979
* You can create a new resolver by selecting **+ Create**.
8080

81+
## Edit and test a resolver
82+
8183
When you edit a single resolver, the **Edit resolver** page opens. You can:
8284

83-
* Update the resolver's policy definition and optionally the data source. Changing the data source overwrites the resolver's current policy definition.
85+
* Update the resolver policy and optionally the data source. Changing the data source overwrites the current resolver policy.
8486

8587
* Change the type and field that the resolver targets.
8688

87-
* Test and debug the resolver's configuration. Select **Run test** to see sample resolver output that you can validate against the schema.
89+
* Test and debug the resolver's configuration. As you edit the resolver policy, select **Run Test** to check the output from the data source, which you can validate against the schema. If errors occur, the response includes troubleshooting information.
90+
91+
:::image type="content" source="media/configure-graphql-resolver/edit-resolver.png" alt-text="Screenshot of editing a resolver in the portal." lightbox="media/configure-graphql-resolver/edit-resolver.png":::
8892

8993
## GraphQL context
9094

articles/api-management/graphql-schema-resolve-api.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,9 @@ type User {
107107
1. Select **Create**.
108108
1. To resolve data for another field in the schema, repeat the preceding steps to create a resolver.
109109

110+
> [!TIP]
111+
> As you edit a resolver policy, select **Run Test** to check the output from the data source, which you can validate against the schema. If errors occur, the response includes troubleshooting information.
112+
110113
[!INCLUDE [api-management-graphql-test.md](../../includes/api-management-graphql-test.md)]
111114

112115
## Secure your GraphQL API
115 KB
Loading

0 commit comments

Comments
 (0)