The field input type 'ModelSortDirection' is not present when resolving type 'Query' #6029
Labels
bug
Something isn't working
graphql-transformer-v1
Issue related to GraphQL Transformer v1
@key
Issues tied to @key transformer directive
Describe the bug
Creating a secondary key on a model with no list query results in this error on amplify push:
UPDATE_FAILED GraphQLSchema AWS::AppSync::GraphQLSchema Tue Dec 01 2020 14:37:57 GMT-0700 (Mountain Standard Time) Schema Creation Status is FAILED with details: Found 2 problem(s) with the schema: The field input type 'ModelSortDirection' is not present when resolving type 'Query' [@185:1]. The field input type 'ModelTodoFilterInput' is not present when resolving type 'Query' [@185:1].
This is I think similar to the issues reported at #2389
Amplify CLI Version
4.37.0
To Reproduce
Push a model like so:
You'll get the error. Removing
queries: { get: "getTodo" }
will make things work.Expected behavior
Should just work without me having to remove
queries: { get: "getTodo" }
.The text was updated successfully, but these errors were encountered: