Skip to content

Commit 185912b

Browse files
committed
edit
1 parent edb4b6b commit 185912b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

articles/api-management/http-data-source-policy.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ type User {
199199
<http-data-source>
200200
<http-request>
201201
<set-method>POST</set-method>
202-
<set-url> https://data.contoso.com/user/create </set-url>
202+
<set-url>https://data.contoso.com/user/create </set-url>
203203
<set-header name="Content-Type" exists-action="override">
204204
<value>application/json</value>
205205
</set-header>
@@ -215,7 +215,7 @@ type User {
215215

216216
### Resolver for GraphQL union type
217217

218-
The following example resolves a query of order by ID by making an HTTP `GET` call to a backend data source and returns a JSON object that includes the customer ID and type. The customer type is a union of `RegisteredCustomer` and `GuestCustomer` types.
218+
The following example resolves the `orderById` query by making an HTTP `GET` call to a backend data source and returns a JSON object that includes the customer ID and type. The customer type is a union of `RegisteredCustomer` and `GuestCustomer` types.
219219

220220
#### Example schema
221221

@@ -255,7 +255,7 @@ type GuestCustomer {
255255

256256
#### Example policy
257257

258-
For the sake of this example, we mock the customer results from an external source, and hard code the fetched results in the `set-body` policy.
258+
For this example, we mock the customer results from an external source, and hard code the fetched results in the `set-body` policy. The `__typename` field is used to determine the type of the customer.
259259

260260
```xml
261261
<http-data-source>

0 commit comments

Comments
 (0)