Files
twenty/packages/twenty-server
Chandragupt Gosavi 253a3eb83f fix: prevent updating isCustom on object and field metadata (#9968)
This PR prevents updating isCustom on object and field metadata.

Example graphql mutation now cannot be used to modify existing field's
isCustom property as expected.

```
mutation UpdateOneFieldMetadataItem(
    $idToUpdate: UUID!
    $updatePayload: UpdateFieldInput!
  ) {
    updateOneField(input: { id: $idToUpdate, update: $updatePayload }) {
      id
     isCustom
    }
  }
```

Example payload is not allowed now and it will return error in response.

```
{
  "idToUpdate": "80c6c8df-f719-42d2-985a-353468a3ed00",
  "updatePayload": {
    "isCustom": true
  }
}
```

fixes- #6581
2025-02-03 17:30:08 +01:00
..
2024-09-18 17:35:08 +02:00
2024-12-12 15:46:48 +00:00
2024-09-20 11:02:52 +02:00
2025-01-27 21:07:49 +01:00
2025-01-27 21:07:49 +01:00
2025-01-27 21:07:49 +01:00