Files
twenty/front/src/modules/metadata/graphql/mutations.ts
T
Weiko 1344e78acb Remove singular/plural from field-metadata (#2085)
* Remove singular/plural from field-metadata

* revert removing id from create input

* remove console log

* remove console log

* codegen

* missing files

* fix tests
2023-10-17 15:21:58 +02:00

29 lines
510 B
TypeScript

import { gql } from '@apollo/client';
export const CREATE_ONE_OBJECT = gql`
mutation CreateOneObject($input: CreateOneObjectInput!) {
createOneObject(input: $input) {
id
}
}
`;
export const CREATE_ONE_FIELD = gql`
mutation CreateOneField($input: CreateOneFieldInput!) {
createOneField(input: $input) {
id
type
name
label
description
icon
placeholder
isCustom
isActive
isNullable
createdAt
updatedAt
}
}
`;