mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-17 12:31:52 +03:00
5116e16e18
* add support for action queries * a new parameter `type` is added in the ArgumentDefinition, its value can be either `query` or `mutation` and it defaults to the latter * throw 400 when a query action is tried to explain * update the actions docs to include query actions * refactor the ToJSON and ToOrdJSON of ActionDefinition Co-authored-by: Rishichandra Wawhal <rishi@hasura.io> Co-authored-by: Tirumarai Selvan <tiru@hasura.io>
32 lines
517 B
YAML
32 lines
517 B
YAML
type: bulk
|
|
args:
|
|
- type: drop_action
|
|
args:
|
|
name: create_user
|
|
clear_data: true
|
|
- type: drop_action
|
|
args:
|
|
name: create_users
|
|
clear_data: true
|
|
- type: drop_action
|
|
args:
|
|
name: mirror
|
|
clear_data: true
|
|
- type: drop_action
|
|
args:
|
|
name: get_user_by_email
|
|
clear_data: true
|
|
- type: drop_action
|
|
args:
|
|
name: get_users_by_email
|
|
clear_data: true
|
|
# clear custom types
|
|
- type: set_custom_types
|
|
args: {}
|
|
|
|
- type: run_sql
|
|
args:
|
|
cascade: true
|
|
sql: |
|
|
DROP TABLE "user";
|