Add relation metadata seed (#2431)

* Add relation metadata seed

* Fix

* Add filtering by relation id on server

* Fix
This commit is contained in:
Charles Bochet
2023-11-10 23:53:07 +01:00
committed by GitHub
parent 73db5eb35d
commit 130a68dd26
29 changed files with 645 additions and 379 deletions

View File

@ -345,7 +345,7 @@ export const graphqlMocks = [
);
}),
graphql.query('FindManyViewFieldsV2', (req, res, ctx) => {
const viewId = req.variables.filter.viewId.eq;
const viewId = req.variables.filter.view.eq;
return res(
ctx.data({

View File

@ -30,6 +30,8 @@ export const mockedObjectMetadataItems = {
isNullable: false,
createdAt: '',
updatedAt: '',
fromRelationMetadata: null,
toRelationMetadata: null,
},
},
{
@ -46,6 +48,8 @@ export const mockedObjectMetadataItems = {
isNullable: false,
createdAt: '',
updatedAt: '',
fromRelationMetadata: null,
toRelationMetadata: null,
},
},
{
@ -62,6 +66,8 @@ export const mockedObjectMetadataItems = {
isNullable: false,
createdAt: '',
updatedAt: '',
fromRelationMetadata: null,
toRelationMetadata: null,
},
},
],
@ -105,6 +111,8 @@ export const mockedObjectMetadataItems = {
isNullable: false,
createdAt: '',
updatedAt: '',
fromRelationMetadata: null,
toRelationMetadata: null,
},
},
{
@ -121,6 +129,8 @@ export const mockedObjectMetadataItems = {
isNullable: false,
createdAt: '',
updatedAt: '',
fromRelationMetadata: null,
toRelationMetadata: null,
},
},
{
@ -137,6 +147,8 @@ export const mockedObjectMetadataItems = {
isNullable: false,
createdAt: '',
updatedAt: '',
fromRelationMetadata: null,
toRelationMetadata: null,
},
},
{
@ -153,6 +165,8 @@ export const mockedObjectMetadataItems = {
isNullable: false,
createdAt: '',
updatedAt: '',
fromRelationMetadata: null,
toRelationMetadata: null,
},
},
{
@ -169,6 +183,8 @@ export const mockedObjectMetadataItems = {
isNullable: false,
createdAt: '',
updatedAt: '',
fromRelationMetadata: null,
toRelationMetadata: null,
},
},
],
@ -212,6 +228,8 @@ export const mockedObjectMetadataItems = {
isNullable: false,
createdAt: '',
updatedAt: '',
fromRelationMetadata: null,
toRelationMetadata: null,
},
},
{
@ -229,6 +247,8 @@ export const mockedObjectMetadataItems = {
isNullable: true,
createdAt: '',
updatedAt: '',
fromRelationMetadata: null,
toRelationMetadata: null,
},
},
{
@ -246,6 +266,8 @@ export const mockedObjectMetadataItems = {
isNullable: true,
createdAt: '',
updatedAt: '',
fromRelationMetadata: null,
toRelationMetadata: null,
},
},
{
@ -262,6 +284,8 @@ export const mockedObjectMetadataItems = {
isNullable: true,
createdAt: '',
updatedAt: '',
fromRelationMetadata: null,
toRelationMetadata: null,
},
},
{
@ -278,6 +302,8 @@ export const mockedObjectMetadataItems = {
isNullable: true,
createdAt: '',
updatedAt: '',
fromRelationMetadata: null,
toRelationMetadata: null,
},
},
{
@ -294,6 +320,8 @@ export const mockedObjectMetadataItems = {
isNullable: true,
createdAt: '',
updatedAt: '',
fromRelationMetadata: null,
toRelationMetadata: null,
},
},
],
@ -337,6 +365,8 @@ export const mockedObjectMetadataItems = {
isNullable: true,
createdAt: '',
updatedAt: '',
fromRelationMetadata: null,
toRelationMetadata: null,
},
},
],