Unique fields - add unicity toggle on data model settings (#13592)
To review after https://github.com/twentyhq/twenty/pull/13539 closes https://github.com/twentyhq/core-team-issues/issues/1224 --------- Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
@@ -34,6 +34,7 @@ export const CREATE_ONE_FIELD_METADATA_ITEM = gql`
|
||||
icon
|
||||
isCustom
|
||||
isActive
|
||||
isUnique
|
||||
isNullable
|
||||
createdAt
|
||||
updatedAt
|
||||
@@ -59,6 +60,7 @@ export const UPDATE_ONE_FIELD_METADATA_ITEM = gql`
|
||||
icon
|
||||
isCustom
|
||||
isActive
|
||||
isUnique
|
||||
isNullable
|
||||
createdAt
|
||||
updatedAt
|
||||
@@ -128,6 +130,7 @@ export const DELETE_ONE_FIELD_METADATA_ITEM = gql`
|
||||
icon
|
||||
isCustom
|
||||
isActive
|
||||
isUnique
|
||||
isNullable
|
||||
createdAt
|
||||
updatedAt
|
||||
|
||||
+3
@@ -17,6 +17,7 @@ export const queries = {
|
||||
icon
|
||||
isCustom
|
||||
isActive
|
||||
isUnique
|
||||
isNullable
|
||||
createdAt
|
||||
updatedAt
|
||||
@@ -99,6 +100,7 @@ export const queries = {
|
||||
icon
|
||||
isCustom
|
||||
isActive
|
||||
isUnique
|
||||
isNullable
|
||||
createdAt
|
||||
updatedAt
|
||||
@@ -131,6 +133,7 @@ export const variables = {
|
||||
options: undefined,
|
||||
settings: undefined,
|
||||
isLabelSyncedWithName: true,
|
||||
isUnique: undefined,
|
||||
objectMetadataId,
|
||||
type: 'TEXT',
|
||||
},
|
||||
|
||||
+2
@@ -13,6 +13,7 @@ export const formatFieldMetadataItemInput = (
|
||||
| 'options'
|
||||
| 'settings'
|
||||
| 'isLabelSyncedWithName'
|
||||
| 'isUnique'
|
||||
>
|
||||
>,
|
||||
) => {
|
||||
@@ -25,5 +26,6 @@ export const formatFieldMetadataItemInput = (
|
||||
options: input.options,
|
||||
settings: input.settings,
|
||||
isLabelSyncedWithName: input.isLabelSyncedWithName,
|
||||
isUnique: input.isUnique,
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user