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
Describe the bug
If you disable query generation on a type (i.e @model(queries: null)), then GQL queries will fail when you try to query for this model via a connection because the generated Model*Connection fails to have the proper auth directives applied.
run amplify api gql-compile in order to see the generated schema.graphql in ./build/
See that ModelCommentConnection does not have the @aws_api_key @aws_cognito_user_pools (if Cognito User Pools was set up as an alternative auth method)
Expected behavior
I'd like for people to only access Comment via Post.comments, and so disabling Comment queries should allow me to do so without impeding my ability to access Comment via Post.comments.
Desktop (please complete the following information):
OS: Mac
Node Version: v14.11.0
The text was updated successfully, but these errors were encountered:
Describe the bug
If you disable query generation on a type (i.e @model(queries: null)), then GQL queries will fail when you try to query for this model via a connection because the generated Model*Connection fails to have the proper auth directives applied.
Amplify CLI Version
4.41.2
To Reproduce
Example schema:
run
amplify api gql-compile
in order to see the generated schema.graphql in ./build/See that ModelCommentConnection does not have the
@aws_api_key @aws_cognito_user_pools
(if Cognito User Pools was set up as an alternative auth method)Expected behavior
I'd like for people to only access Comment via Post.comments, and so disabling Comment queries should allow me to do so without impeding my ability to access Comment via Post.comments.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: