graphql-engine/server/tests-py/queries/actions/sync/schema_teardown.yaml
Karthikeyan Chinnakonda 5116e16e18
server(actions): add support for queries (close #4032) (#4309)
* 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>
2020-04-16 12:55:19 +05:30

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";