graphql-engine/server/tests-py/queries/v1/metadata/replace_metadata.yaml
Samir Talwar b856d96989 server/tests-py: Factor out service URLs as environment variables.
Making it easier to inject different ones later.

I also included a change to _.prettierignore_ so Visual Studio Code doesn't keep trying to reformat the JavaScript or YAML files in `server/tests-py`, as it can cause diffs to balloon for no obvious benefit.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5456
GitOrigin-RevId: bc6d548708160a328e1e61a00e19be8e124da025
2022-08-15 14:59:05 +00:00

50 lines
1.3 KiB
YAML

description: Replace schema cache (metadata)
url: /v1/metadata
status: 200
response:
message: success
query:
type: replace_metadata
args:
remote_schemas:
- name: test
comment: testing replace metadata with remote schemas
definition:
url: "{{REMOTE_SCHEMAS_WEBHOOK_DOMAIN}}/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: []
computed_fields:
- name: get_articles
comment: null
definition:
function: fetch_articles
table_argument: author_row
- 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