forked from hasura/graphql-engine
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
server: fix action output fields return type (fix hasura#6631)
GitOrigin-RevId: 9be5ac8
- Loading branch information
1 parent
9dfed5d
commit ecb90c4
Showing
8 changed files
with
146 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
94 changes: 94 additions & 0 deletions
94
server/tests-py/queries/actions/introspection/output_types_query.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
# Test case for bug reported at https://github.com/hasura/graphql-engine/issues/6631 | ||
description: Action introspection to check return types | ||
url: /v1/graphql | ||
status: 200 | ||
query: | ||
query: | | ||
query { | ||
__schema { | ||
mutationType { | ||
fields { | ||
name | ||
type { | ||
name | ||
kind | ||
fields { | ||
name | ||
type { | ||
kind | ||
ofType { | ||
name | ||
kind | ||
ofType { | ||
name | ||
kind | ||
} | ||
} | ||
} | ||
} | ||
ofType { | ||
name | ||
kind | ||
ofType { | ||
name | ||
kind | ||
fields { | ||
name | ||
type { | ||
kind | ||
ofType { | ||
name | ||
kind | ||
ofType { | ||
name | ||
kind | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
response: | ||
data: | ||
__schema: | ||
mutationType: | ||
fields: | ||
- name: actionName | ||
type: | ||
kind: LIST | ||
name: | ||
ofType: | ||
kind: NON_NULL | ||
name: | ||
ofType: | ||
kind: OBJECT | ||
name: SampleOutput | ||
fields: | ||
- name: id | ||
type: | ||
kind: LIST | ||
ofType: | ||
kind: NON_NULL | ||
name: | ||
ofType: | ||
kind: SCALAR | ||
name: String | ||
fields: | ||
- name: actionName2 | ||
type: | ||
kind: OBJECT | ||
name: SampleOutput2 | ||
ofType: | ||
fields: | ||
- name: id | ||
type: | ||
kind: NON_NULL | ||
ofType: | ||
kind: SCALAR | ||
name: String | ||
ofType: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters