graphql-engine/server/tests-py/queries/v1/metadata/export_metadata.yaml
Rakesh Emmadi 9bd5826020 allow customising graphql schema for a table (close #981) (#2509)
* allow customizing GraphQL root field names, close #981

* document v2 track_table API in reference

* support customising column field names in GraphQL schema

* [docs] add custom column fields doc in API reference

* add tests

* rename 'ColField' to 'ColumnField'

* embed column's graphql field in 'PGColumnInfo'

-> Value constructor of 'PGCol' is not exposed
-> Using 'parseJSON' to construct 'PGCol' in 'FromJSON' instances

* avoid using 'Maybe TableConfig'

* refactors & 'custom_column_fields' -> 'custom_column_names'

* cli-test: add configuration field in metadata export test

* update expected keys in `FromJSON` instance of `TableMeta`

* use `buildSchemaCacheFor` to update configuration in v2 track_table

* remove 'GraphQLName' type and use 'isValidName' exposed from parser lib

* point graphql-parser-hs library git repo to hasura

* support 'set_table_custom_fields' query API & added docs and tests
2019-09-19 10:17:36 +05:30

61 lines
1.3 KiB
YAML

description: Export schema cache (metadata)
url: /v1/query
status: 200
response:
functions:
- search_articles
remote_schemas: []
query_collections: []
allowlist: []
tables:
- table: author
is_enum: false
configuration:
custom_root_fields:
select:
select_by_pk:
select_aggregate:
insert:
update:
delete:
custom_column_names: {}
object_relationships: []
array_relationships:
- using:
foreign_key_constraint_on:
column: author_id
table: article
name: articles
comment: List all articles of the author
insert_permissions: []
select_permissions: []
update_permissions: []
delete_permissions: []
event_triggers: []
- table: article
is_enum: false
configuration:
custom_root_fields:
select:
select_by_pk:
select_aggregate:
insert:
update:
delete:
custom_column_names: {}
object_relationships:
- using:
foreign_key_constraint_on: author_id
name: author
comment:
array_relationships: []
insert_permissions: []
select_permissions: []
update_permissions: []
delete_permissions: []
event_triggers: []
query:
type: export_metadata
args: {}