The Wayback Machine - https://web.archive.org/web/20220722164916/https://github.com/webiny/webiny-js/issues/2471
Skip to content
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

GraphQL - createCategory Mutation Throwing an Incorrect Error Message #2471

Open
adrians5j opened this issue Jun 9, 2022 · 0 comments
Open

GraphQL - createCategory Mutation Throwing an Incorrect Error Message #2471

adrians5j opened this issue Jun 9, 2022 · 0 comments
Labels
good first issue

Comments

@adrians5j
Copy link
Member

@adrians5j adrians5j commented Jun 9, 2022

Version

5.29.0

Operating System

/

Browser

/

What steps will reproduce the bug?

Just try issuing the following mutation, and you should be able to see the error message on the right:

Snipaste_2022-06-09_11-50-28

What is the expected behavior?

We should not get this system-level error. We should get the error message thrown from the CreateDataModel model (packages/api-page-builder/src/graphql/crud/categories.crud.ts:195).

What do you see instead?

The error is shown in the screenshot.

Additional information

No response

Possible solution

This is basically happening because of the incorrect order of operations here.

image

The fix needs to be applied here. We need to switch the order of operations.

@adrians5j adrians5j added the good first issue label Jun 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue
1 participant