Skip to content

Commit 98fc85f

Browse files
committed
Include kind in the types
1 parent 50607e4 commit 98fc85f

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/type/__tests__/introspection-test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ describe('Introspection', () => {
3232
expect(result).to.deep.equal({
3333
data: {
3434
__schema: {
35-
queryType: { name: 'SomeObject' },
35+
queryType: { name: 'SomeObject', kind: 'OBJECT' },
3636
mutationType: null,
3737
subscriptionType: null,
3838
types: [

src/utilities/__tests__/buildClientSchema-test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,7 @@ describe('Type System: build schema from introspection', () => {
716716
delete introspection.__schema.queryType.name;
717717

718718
expect(() => buildClientSchema(introspection)).to.throw(
719-
'Unknown type reference: {}.',
719+
'Unknown type reference: { kind: "OBJECT" }.',
720720
);
721721
});
722722

src/utilities/getIntrospectionQuery.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ export function getIntrospectionQuery(options?: IntrospectionOptions): string {
7777
query IntrospectionQuery {
7878
__schema {
7979
${schemaDescription}
80-
queryType { name }
81-
mutationType { name }
82-
subscriptionType { name }
80+
queryType { name kind }
81+
mutationType { name kind }
82+
subscriptionType { name kind }
8383
types {
8484
...FullType
8585
}

0 commit comments

Comments
 (0)