Skip to content

Commit 577a13a

Browse files
spawniaactions-user
authored andcommitted
Prettify docs
1 parent afc65e6 commit 577a13a

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,18 @@ This expects a string in JSON format, not a GraphQL literal.
5151

5252
```graphql
5353
type Query {
54-
foo(bar: JSON!): JSON!
54+
foo(bar: JSON!): JSON!
5555
}
5656

5757
# Wrong, the given value is a GraphQL literal object
58-
{ foo(bar: { baz: 2 }) }
58+
{
59+
foo(bar: { baz: 2 })
60+
}
5961

6062
# Correct, the given value is a JSON string representing an object
61-
{ foo(bar: "{ \"bar\": 2 }") }
63+
{
64+
foo(bar: "{ \"bar\": 2 }")
65+
}
6266
```
6367

6468
JSON responses will contain nested JSON strings.

0 commit comments

Comments
 (0)