graphql-engine/server/tests-py/queries/v1/metadata/replace_metadata.yaml
Vamshi Surabhi 4facb3c780 remove support for query templates (#2560)
query templates is a little known feature that lets you template rql
queries and serve them as rest apis. This is not relevant anymore
given the GraphQL interface and getting rid of it reduces the dev
time when adding features in few subsystems.

This feature has never been used outside hasura's internal projects or
documented or exposed through console and hence can safely be removed.
2019-07-23 19:11:34 +00:00

44 lines
1.1 KiB
YAML

description: Replace schema cache (metadata)
url: /v1/query
status: 200
response:
message: success
query:
type: replace_metadata
args:
remote_schemas:
- name: test
comment: testing replace metadata with remote schemas
definition:
url: http://localhost:5000/hello-graphql
forward_client_headers: false
tables:
- table: author
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
object_relationships:
- using:
foreign_key_constraint_on: author_id
name: author
comment: null
array_relationships: []
insert_permissions: []
select_permissions: []
update_permissions: []
delete_permissions: []
event_triggers: []
functions:
- search_articles