From d5965757236f601a4c8a92f853ff2cb40b79c35a Mon Sep 17 00:00:00 2001 From: Keith Date: Tue, 29 Oct 2024 16:32:31 -0700 Subject: [PATCH] PR: Address sourcery-ai comments --- docs/guide/mutations.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/guide/mutations.md b/docs/guide/mutations.md index 1c93bbad..90186770 100644 --- a/docs/guide/mutations.md +++ b/docs/guide/mutations.md @@ -187,7 +187,7 @@ 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 @@ -195,7 +195,7 @@ 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])