2018-11-27 14:26:10 +03:00
|
|
|
description: Replace schema cache (metadata)
|
2021-02-19 05:39:30 +03:00
|
|
|
url: /v1/metadata
|
2018-11-27 14:26:10 +03:00
|
|
|
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: []
|
2019-11-07 17:39:48 +03:00
|
|
|
computed_fields:
|
|
|
|
- name: get_articles
|
|
|
|
comment: null
|
|
|
|
definition:
|
|
|
|
function: fetch_articles
|
|
|
|
table_argument: author_row
|
2018-11-27 14:26:10 +03:00
|
|
|
- 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: []
|
2019-01-25 06:31:54 +03:00
|
|
|
functions:
|
|
|
|
- search_articles
|