mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-19 13:31:43 +03:00
f6ed169219
* allow ordering using columns from object relationships, close #463 * validate table fields in nested insert * add tests * add docs * change 'table_order_by' type from enums to ordered map * remove unwanted code from 'Schema.hs' file * 'AnnGObject' is not list of field name and value tuple * update docs for new order_by type * use 'InsOrdHashMap' for 'AnnGObj' * handle empty fields in order_by * remove '_' prefixes for asc/desc * fix the changed order_by syntax across the repo
25 lines
340 B
YAML
25 lines
340 B
YAML
type: bulk
|
|
args:
|
|
#Drop relationship first
|
|
- type: drop_relationship
|
|
args:
|
|
relationship: articles
|
|
table:
|
|
schema: public
|
|
name: author
|
|
|
|
- type: run_sql
|
|
args:
|
|
sql: |
|
|
drop table article
|
|
|
|
- type: run_sql
|
|
args:
|
|
sql: |
|
|
drop table author
|
|
|
|
- type: run_sql
|
|
args:
|
|
sql: |
|
|
drop table contact
|