Skip to content

Incorrect scheme.graphql is pushed and cannot be corrected.

0

An amplify pull will generate a schema.graphql containing the syntax error.

Even with no syntax errors (changed to only a single model), amplify api gql-compile fails. Does this compile the schema.graphql with errors that is being pushed?

:octagonal_sign: Syntax Error: Unexpected ")".

I am trying to reproduce the problem, but I am having trouble understanding how I could have pushed the schema.graphql containing the syntax error.

This also makes the schema.graphql in amplify studio empty and the contet inaccessible. Cloning the environment also failed with a syntax error.

Does anyone know how to deal with this?

% amplify -v             
12.12.2
1 Answer
0
Accepted Answer

I reproduced this error and found the solutions. https://github.com/aws-amplify/amplify-category-api/issues/88

answered 2 years ago
EXPERT
reviewed 10 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.