Skip to content

Commit

Permalink
fix integration test graphql-conformance-018.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Heikel Bouzayene authored and Heikel Bouzayene committed Oct 10, 2024
1 parent 35f9355 commit c9eeb16
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions tests/execution/graphql-conformance-018.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

# Basic queries with modify field check
# Basic queries with field modify check

```graphql @config
schema
Expand All @@ -14,7 +13,7 @@ type Query {

type User {
id: ID!
name: String!
name: String! @modify(name: "newName")
city: String
}
```
Expand All @@ -23,27 +22,28 @@ type User {
- request:
method: POST
url: http://upstream/graphql
textBody: '{ "query": "query { user(id: 4) { city name } }" }'
textBody: '{ "query": "query { user(id: 4) { city name } }" }'
expectedHits: 1
response:
status: 200
body:
data:
user:
city: Globe
newName: Tailcall
name: Tailcall

```

```yml @test
# Positive: basic 1
- method: POST
url: http://localhost:8001/graphql
url: http://localhost:8080/graphql
body:
query: |
{
query getUser {
user(id: 4) {
city
newName
email
}
}
```

0 comments on commit c9eeb16

Please sign in to comment.