graphql-engine/server/tests-py/queries/graphql_query/enums/introspect.yaml
Alexis King ed26da59a6 Add support for GraphQL enum types via enum table references
These changes also add a new type, PGColumnType, between PGColInfo and
PGScalarType, and they process PGRawColumnType values into PGColumnType
values during schema cache generation.
2019-08-26 00:54:56 -05:00

58 lines
1.1 KiB
YAML

description: Test introspecting enum types
url: /v1/graphql
status: 200
response:
data:
colors:
name: colors_enum
kind: ENUM
enumValues:
- name: blue
description: '#0000FF'
- name: green
description: '#00FF00'
- name: orange
description: '#FFFF00'
- name: purple
description: '#FF00FF'
- name: red
description: '#FF0000'
- name: yellow
description: '#00FFFF'
users:
fields:
- name: favorite_color
type:
ofType:
name: colors_enum
- name: id
type:
ofType:
name: Int
- name: name
type:
ofType:
name: String
query:
query: |
{
colors: __type(name: "colors_enum") {
name
kind
enumValues {
name
description
}
}
users: __type(name: "users") {
fields {
name
type {
ofType {
name
}
}
}
}
}