mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
* fix graphql schema for m2o fields * add e2e tests for graphql m2o & o2m * remove unused code * fix mariadb json error * attempt to fix oracle * possibly fix graphql m2o queries
25 lines
565 B
JavaScript
25 lines
565 B
JavaScript
exports.seed = async function (knex) {
|
|
await knex('directus_relations').del();
|
|
return await knex('directus_relations').insert([
|
|
{
|
|
many_collection: 'guests',
|
|
many_field: 'favorite_artist',
|
|
one_collection: 'artists',
|
|
},
|
|
{
|
|
many_collection: 'artists_events',
|
|
many_field: 'events_id',
|
|
one_collection: 'events',
|
|
one_field: 'artists',
|
|
junction_field: 'artists_id',
|
|
},
|
|
{
|
|
many_collection: 'artists_events',
|
|
many_field: 'artists_id',
|
|
one_collection: 'artists',
|
|
one_field: 'events',
|
|
junction_field: 'events_id',
|
|
},
|
|
]);
|
|
};
|