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

Update mutations.md #3322

Merged
merged 1 commit into from
Jan 6, 2024
Merged

Update mutations.md #3322

merged 1 commit into from
Jan 6, 2024

Conversation

eudago
Copy link
Member

@eudago eudago commented Jan 5, 2024

Currently, this piece of code would fail when executing the following query:

mutation {
  fruit{
    add(input: {id: "this is only a example"}) {
      id
    }
  }
}

With the following error:

'NoneType' object has no attribute 'fruit'

as it lacks the expected field type.

Description

Types of Changes

  • Core
  • Bugfix
  • New feature
  • Enhancement/optimization
  • Documentation

Issues Fixed or Closed by This PR

Currently, this piece of code would fail when executing the following query:

```
mutation {
  fruit{
    add(input: {id: "this is only a example"}) {
      id
    }
  }
}
```

With the following error: 'NoneType' object has no attribute 'fruit', as it lacks the expected field type.
Copy link

github-actions bot commented Jan 6, 2024

Hi 👋 You can find a preview of the docs here:

https://beta.strawberry.rocks/docs/pr/3322/general/mutations

Copy link
Member

@patrick91 patrick91 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great catch! thank you 😊

@patrick91 patrick91 merged commit f30e2e5 into strawberry-graphql:main Jan 6, 2024
4 checks passed
@botberry
Copy link
Member

botberry commented Jan 6, 2024

Thanks for contributing to Strawberry! 🎉 You've been invited to join
the Strawberry GraphQL organisation 😊

You can also request a free sticker by filling this form: https://forms.gle/dmnfQUPoY5gZbVT67

And don't forget to join our discord server: https://strawberry.rocks/discord 🔥

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

Successfully merging this pull request may close these issues.

None yet

3 participants