-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ApolloError UserInputError - Cannot Delete Custom field #6197
Comments
To resolve the ApolloError UserInputError when deleting a custom field, follow these steps:
Check these areas to ensure the deletion process is correctly implemented and handles custom fields without errors. References/packages/twenty-server/src/engine/metadata-modules/field-metadata/field-metadata.resolver.ts
|
Hey, do you have the backend error, if you open the network tab and find the failing graphql query? Thanks! |
Hi Felix, Here is what I found in network tab: ` {"operationName":"DeleteOneFieldMetadataItem","variables":{"idToDelete":"5435a0fb-795c-4c49-bd26-c6ddb9eb11a4"},"query":"mutation DeleteOneFieldMetadataItem($idToDelete: UUID!) {\n deleteOneField(input: {id: $idToDelete}) {\n id\n type\n name\n label\n description\n icon\n isCustom\n isActive\n isNullable\n createdAt\n updatedAt\n __typename\n }\n}"}` |
Sorry @FelixMalfait and @mnbro I did not see the notifications for this one. |
Bug Description
I try to delete a custom field but I receive:
ApolloError UserInputError
ApolloError:UserInputError at new t (/assets/index-JGIdMgsI.js:325:152) at ? (/assets/index-JGIdMgsI.js:329:75936) at d (/assets/index-JGIdMgsI.js:324:8526) at ? (/assets/index-JGIdMgsI.js:324:8441) at new Promise (<anonymous>) at Object.then (/assets/index-JGIdMgsI.js:324:8408) at Object.next (/assets/index-JGIdMgsI.js:324:8536) at jFe (/assets/index-JGIdMgsI.js:324:1934) at pW (/assets/index-JGIdMgsI.js:324:2346) at t.next (/assets/index-JGIdMgsI.js:324:2869) at ? (/assets/index-JGIdMgsI.js:324:8326) at Array.forEach (<anonymous>) at P9 (/assets/index-JGIdMgsI.js:324:8295) at Object.next (/assets/index-JGIdMgsI.js:324:9289) at jFe (/assets/index-JGIdMgsI.js:324:1934) at pW (/assets/index-JGIdMgsI.js:324:2346) at t.next (/assets/index-JGIdMgsI.js:324:2869) at Object.next (/assets/index-JGIdMgsI.js:994:23683) at jFe (/assets/index-JGIdMgsI.js:324:1934) at pW (/assets/index-JGIdMgsI.js:324:2346) at t.next (/assets/index-JGIdMgsI.js:324:2869) at jFe (/assets/index-JGIdMgsI.js:324:1934) at pW (/assets/index-JGIdMgsI.js:324:2346) at t.next (/assets/index-JGIdMgsI.js:324:2869) at Object.onNext [as next] (/assets/index-JGIdMgsI.js:994:24898) at jFe (/assets/index-JGIdMgsI.js:324:1934) at pW (/assets/index-JGIdMgsI.js:324:2346) at t.next (/assets/index-JGIdMgsI.js:324:2869) at ? (/assets/index-JGIdMgsI.js:994:29354)
Expected behavior
Be able to delete Custom Field
The text was updated successfully, but these errors were encountered: