You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When called multiple requests (Query/Mutation) to Prisma server using Promise.all, if Any one of the request gives an error like unique constraints violation the all other request stops and gives the same error even though some request are queries.
{ Error: A unique constraint would be violated on *****. Details: Field name = *****
at BatchedGraphQLClient.<anonymous> (/*****/server/node_modules/http-link-dataloader/dist/src/BatchedGraphQLClient.js:77:35)
at step (/*****/server/node_modules/http-link-dataloader/dist/src/BatchedGraphQLClient.js:40:23)
at Object.next (/*****/server/node_modules/http-link-dataloader/dist/src/BatchedGraphQLClient.js:21:53)
at fulfilled (/*****/server/node_modules/http-link-dataloader/dist/src/BatchedGraphQLClient.js:12:58)
at <anonymous>
at process._tickDomainCallback (internal/process/next_tick.js:229:7)
message: 'A unique constraint would be violated on *****. Details: Field name = *****',
locations: [],
path: [ '*****' ] }
I want to perform bulk create operation and want to perform opeartion for all even if any of them gives validation error and return summary like number successfully created, error, etc.
I also saw that some request have completed and new records are added into db but due to this isssue all records return same error.
The text was updated successfully, but these errors were encountered:
When called multiple requests (Query/Mutation) to Prisma server using Promise.all, if Any one of the request gives an error like
unique constraints violation
the all other request stops and gives the same error even though some request are queries.I want to perform bulk create operation and want to perform opeartion for all even if any of them gives validation error and return summary like number successfully created, error, etc.
I also saw that some request have completed and new records are added into db but due to this isssue all records return same error.
The text was updated successfully, but these errors were encountered: