mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 09:22:43 +03:00
59c01786fe
Add optimistic concurrency control to the ‘replace_metadata’ call. Prevents users from submitting out-of-date metadata to metadata-mutating APIs. See https://github.com/hasura/graphql-engine-mono/issues/472 for details. GitOrigin-RevId: 5f220f347a3eba288a9098b01e9913ffd7e38166
39 lines
945 B
YAML
39 lines
945 B
YAML
description: Replace schema cache (metadata)
|
|
url: /v1/metadata
|
|
status: 200
|
|
response:
|
|
message: success
|
|
query:
|
|
type: replace_metadata
|
|
args:
|
|
functions:
|
|
- schema: public
|
|
name: search_articles
|
|
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: []
|