Skip to content
This repository was archived by the owner on Apr 1, 2024. It is now read-only.

Commit e0a7ba9

Browse files
committed
added test for querying schema descripton
1 parent 51cf489 commit e0a7ba9

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

internal/gqlgen/gqlgen_test.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,3 +224,23 @@ tests:
224224
}
225225
json: |
226226
{"__type":{"name":"Droid","description":"A mechanical creature in the Star Wars universe."}}
227+
228+
Schema Document:
229+
- name: querying schema description
230+
schema: |
231+
"""This is a simple schema"""
232+
schema {
233+
query: Simple
234+
}
235+
236+
"""This is a simple type"""
237+
type Simple {
238+
"""This is a string field"""
239+
string: String
240+
}
241+
query: |
242+
{
243+
__schema { description }
244+
}
245+
json: |
246+
{"__schema":{"description":"This is a simple schema"}}

0 commit comments

Comments
 (0)