Files
twenty_crm/front/src/modules/metadata/graphql/queries.ts
2023-10-31 12:38:53 +01:00

57 lines
1.1 KiB
TypeScript

import { gql } from '@apollo/client';
export const FIND_MANY_METADATA_OBJECTS = gql`
query ObjectMetadataItems {
objects(paging: { first: 1000 }) {
edges {
node {
id
dataSourceId
nameSingular
namePlural
labelSingular
labelPlural
description
icon
isCustom
isActive
createdAt
updatedAt
fields(paging: { first: 1000 }) {
edges {
node {
id
type
name
label
description
icon
placeholder
isCustom
isActive
isNullable
createdAt
updatedAt
}
}
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
totalCount
}
}
}
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
totalCount
}
}
`;