mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-17 20:41:49 +03:00
ed26da59a6
These changes also add a new type, PGColumnType, between PGColInfo and PGScalarType, and they process PGRawColumnType values into PGColumnType values during schema cache generation.
58 lines
1.1 KiB
YAML
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
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|