mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-25 08:24:00 +03:00
a8424c48a1
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3888 GitOrigin-RevId: 027c319a66671a44fc6e5506bdfc9d2c10a8569f
94 lines
2.1 KiB
YAML
94 lines
2.1 KiB
YAML
- description: set table custom fields
|
|
url: /v1/metadata
|
|
status: 200
|
|
response:
|
|
message: success
|
|
query:
|
|
type: citus_set_table_customization
|
|
args:
|
|
source: citus
|
|
table: table_to_customize
|
|
configuration:
|
|
custom_name: customized_table
|
|
column_config:
|
|
column_to_customize:
|
|
custom_name: "customized_column"
|
|
custom_root_fields: {select: "gather"}
|
|
|
|
- description: select custom fields
|
|
url: /v1/graphql
|
|
status: 200
|
|
response:
|
|
data:
|
|
gather: []
|
|
query:
|
|
query: |
|
|
query {
|
|
gather {
|
|
customized_column
|
|
}
|
|
}
|
|
|
|
- description: set table custom column names using deprecated custom_column_names
|
|
url: /v1/metadata
|
|
status: 200
|
|
response:
|
|
message: success
|
|
query:
|
|
type: citus_set_table_customization
|
|
args:
|
|
source: citus
|
|
table: table_to_customize
|
|
configuration:
|
|
custom_name: customized_table
|
|
custom_column_names:
|
|
column_to_customize: "customized_column_via_custom_column_names"
|
|
custom_root_fields: {select: "gather"}
|
|
|
|
- description: select custom fields
|
|
url: /v1/graphql
|
|
status: 200
|
|
response:
|
|
data:
|
|
gather: []
|
|
query:
|
|
query: |
|
|
query {
|
|
gather {
|
|
customized_column_via_custom_column_names
|
|
}
|
|
}
|
|
|
|
- description: set table custom column names using deprecated custom_column_names and current column_config
|
|
url: /v1/metadata
|
|
status: 200
|
|
response:
|
|
message: success
|
|
query:
|
|
type: citus_set_table_customization
|
|
args:
|
|
source: citus
|
|
table: table_to_customize
|
|
configuration:
|
|
custom_name: customized_table
|
|
custom_column_names:
|
|
column_to_customize: "ignored_column_name"
|
|
column_config:
|
|
column_to_customize:
|
|
custom_name: "name_that_takes_precedence"
|
|
custom_root_fields: {select: "gather"}
|
|
|
|
- description: select custom fields
|
|
url: /v1/graphql
|
|
status: 200
|
|
response:
|
|
data:
|
|
gather: []
|
|
query:
|
|
query: |
|
|
query {
|
|
gather {
|
|
name_that_takes_precedence
|
|
}
|
|
}
|