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

When I try to push graphql I get the error subscriptions.onCreate.forEach is not a function. #13330

Closed
taro-nagano opened this issue Oct 13, 2023 · 2 comments

Comments

@taro-nagano
Copy link

First, we created Grapfql using the command amplify add api.

Then I edited schema.graphql as follows.

Finally, we did an amplify push.

the following error occurred.

type Message
  @model (
    mutations: {create: "createMessage"}
    subscriptions:  {onCreate: "onCreateMessage"}
  )
  @auth(rules: [
    {allow: owner, operations:[read, create, delete]}
    {allow: private,  operations:[read]}
  ])
{
  id: ID!
  content: String!
}

It would be helpful if you could let me know if you know the solution.

@josefaidt
Copy link
Contributor

Hey @taro-nagano 👋 would you mind porting this over to our bug template? This will help us gather additional context around the issue you are experiencing to effectively troubleshoot. Thanks!

@josefaidt josefaidt closed this as not planned Won't fix, can't repro, duplicate, stale Oct 13, 2023
@github-actions
Copy link

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants