Skip to content

Commit

Permalink
PR: Address sourcery-ai comments
Browse files Browse the repository at this point in the history
  • Loading branch information
keithhackbarth committed Oct 29, 2024
1 parent 7a82c78 commit d596575
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/guide/mutations.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,15 +187,15 @@ schema = strawberry.Schema(mutation=Mutation)

## Batching

If you need to make multiple creates, updates, or deletes as part of one atomic mutation you can use batching. Batching has a similar syntax expect that the mutations take and return a list.
If you need to make multiple creates, updates, or deletes as part of one atomic mutation you can use batching. Batching has a similar syntax except that the mutations take and return a list.

```python title="schema.py"
import strawberry
from strawberry_django import mutations

@strawberry.type
class Mutation:
createFruits: list[Fruit] = mutations.update(list[FruitPartialInput])
createFruits: list[Fruit] = mutations.create(list[FruitPartialInput])
updateFruits: list[Fruit] = mutations.update(list[FruitPartialInput])
deleteFruits: list[Fruit] = mutations.delete(list[FruitPartialInput])

Expand Down

0 comments on commit d596575

Please sign in to comment.