/
alt3rmann
/
graphql-engine
Обзор
Документация
Войти
/
alt3rmann
/
graphql-engine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
server/tests-py/queries/inconsistent_objects/setup.yaml
42 строки
818 B
Samir Talwar
server/tests-py: Fix test_inconsistent_meta.py for split databases.
23 ноя 2022, 17:14
23 ноя 2022, 17:14
43779ff
Код
Авторство
О чём код?
type: bulk args: # tables - type: run_sql args: sql: | create table author( id serial primary key, name text unique ); create table article( id serial primary key, title text not null, content text, author_id integer not null references author(id) ); - type: track_table args: schema: public name: author - type: track_table args: schema: public name: article #Object relationship - type: create_object_relationship args: table: article name: author using: foreign_key_constraint_on: author_id #Array relationship - type: create_array_relationship args: table: author name: articles using: foreign_key_constraint_on: table: article column: author_id