2021-07-15 15:44:26 +03:00
|
|
|
description: Replace schema cache (metadata)
|
|
|
|
url: /v1/metadata
|
|
|
|
status: 200
|
|
|
|
response:
|
|
|
|
message: success
|
|
|
|
query:
|
|
|
|
type: replace_metadata
|
|
|
|
args:
|
|
|
|
version: 3
|
|
|
|
sources:
|
|
|
|
- name: mysql
|
|
|
|
kind: mysql
|
|
|
|
configuration:
|
|
|
|
host: '127.0.0.1'
|
2021-07-21 20:22:08 +03:00
|
|
|
port: 33306
|
|
|
|
user: root
|
|
|
|
password: hasuraMySQL1
|
2021-07-15 15:44:26 +03:00
|
|
|
database: hasura
|
|
|
|
pool_settings: {}
|
2021-07-21 13:22:03 +03:00
|
|
|
tables:
|
|
|
|
- table:
|
|
|
|
name: author
|
|
|
|
schema: hasura
|
|
|
|
array_relationships:
|
|
|
|
- name: articles
|
|
|
|
using:
|
|
|
|
foreign_key_constraint_on:
|
|
|
|
table:
|
|
|
|
name: article
|
|
|
|
schema: hasura
|
|
|
|
column: author_id
|
|
|
|
- name: co_articles
|
|
|
|
using:
|
|
|
|
foreign_key_constraint_on:
|
|
|
|
table:
|
|
|
|
name: article
|
|
|
|
schema: hasura
|
|
|
|
column: co_author_id
|
|
|
|
- table:
|
|
|
|
name: article
|
|
|
|
schema: hasura
|
|
|
|
object_relationships:
|
|
|
|
- name: author
|
|
|
|
using:
|
|
|
|
foreign_key_constraint_on: author_id
|
|
|
|
- name: co_author
|
|
|
|
using:
|
|
|
|
foreign_key_constraint_on: co_author_id
|
2021-10-22 02:50:18 +03:00
|
|
|
- table:
|
|
|
|
name: search_author_view
|
|
|
|
schema: hasura
|