mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-18 13:02:11 +03:00
9bd5826020
* 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
25 lines
468 B
YAML
25 lines
468 B
YAML
type: bulk
|
|
args:
|
|
- type: run_sql
|
|
args:
|
|
sql: |
|
|
-- insert data
|
|
INSERT INTO author (name)
|
|
VALUES ('Author 1'), ('Author 2')
|
|
;
|
|
INSERT INTO article (title, content, author_id)
|
|
VALUES
|
|
( 'Article 1'
|
|
, 'Content for Article 1'
|
|
, 1
|
|
),
|
|
( 'Article 2'
|
|
, 'Content for Article 2'
|
|
, 1
|
|
),
|
|
( 'Article 3'
|
|
, 'Content for Article 3'
|
|
, 2
|
|
)
|
|
;
|