2021-10-12 20:58:46 +03:00
|
|
|
- description: set table custom fields
|
|
|
|
url: /v1/metadata
|
|
|
|
status: 200
|
|
|
|
response:
|
|
|
|
message: success
|
|
|
|
query:
|
|
|
|
type: bigquery_set_table_customization
|
|
|
|
args:
|
|
|
|
source: bigquery
|
|
|
|
table:
|
2022-02-14 09:22:11 +03:00
|
|
|
dataset: hasura
|
2021-10-12 20:58:46 +03:00
|
|
|
name: table_to_customize
|
|
|
|
configuration:
|
|
|
|
custom_name: customized_table
|
2022-03-09 09:34:47 +03:00
|
|
|
column_config:
|
|
|
|
column_to_customize:
|
|
|
|
custom_name: "customized_column"
|
2021-10-12 20:58:46 +03:00
|
|
|
custom_root_fields: {select: "gather"}
|
|
|
|
|
|
|
|
- description: select custom fields
|
|
|
|
url: /v1/graphql
|
|
|
|
status: 200
|
|
|
|
response:
|
|
|
|
data:
|
|
|
|
gather: []
|
|
|
|
query:
|
|
|
|
query: |
|
|
|
|
query {
|
|
|
|
gather {
|
|
|
|
customized_column
|
|
|
|
}
|
|
|
|
}
|
2022-03-09 09:34:47 +03:00
|
|
|
|
|
|
|
- description: set table custom column names using deprecated custom_column_names
|
|
|
|
url: /v1/metadata
|
|
|
|
status: 200
|
|
|
|
response:
|
|
|
|
message: success
|
|
|
|
query:
|
|
|
|
type: bigquery_set_table_customization
|
|
|
|
args:
|
|
|
|
source: bigquery
|
2022-03-14 10:49:36 +03:00
|
|
|
table:
|
|
|
|
dataset: hasura
|
|
|
|
name: table_to_customize
|
2022-03-09 09:34:47 +03:00
|
|
|
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: bigquery_set_table_customization
|
|
|
|
args:
|
|
|
|
source: bigquery
|
2022-03-14 10:49:36 +03:00
|
|
|
table:
|
|
|
|
dataset: hasura
|
|
|
|
name: table_to_customize
|
2022-03-09 09:34:47 +03:00
|
|
|
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
|
|
|
|
}
|
|
|
|
}
|