mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-18 04:51:35 +03:00
1cd9fc376d
https://github.com/hasura/graphql-engine-mono/pull/1848 GitOrigin-RevId: 2bd7c0a18448f042a1e35d21aaf42232acf48a46
49 lines
1.1 KiB
YAML
49 lines
1.1 KiB
YAML
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'
|
|
port: 33306
|
|
user: root
|
|
password: hasuraMySQL1
|
|
database: hasura
|
|
pool_settings: {}
|
|
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
|