From 63c9bd2b4edae25b855aaeb4322082efbdaa58e2 Mon Sep 17 00:00:00 2001 From: Hayden Richards Date: Wed, 25 Sep 2024 06:04:06 +0800 Subject: [PATCH] Change default Relay input m2m types from `ListInput[NodeInputPartial]` to `ListInput[NodeInput]` (#630) --- strawberry_django/fields/types.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/strawberry_django/fields/types.py b/strawberry_django/fields/types.py index f43d37ab..1fcd395e 100644 --- a/strawberry_django/fields/types.py +++ b/strawberry_django/fields/types.py @@ -404,9 +404,9 @@ def __hash__(self): type, ] = { related.ForeignKey: NodeInput, - related.ManyToManyField: ListInput[NodeInputPartial], + related.ManyToManyField: ListInput[NodeInput], related.OneToOneField: NodeInput, - reverse_related.ManyToManyRel: ListInput[NodeInputPartial], + reverse_related.ManyToManyRel: ListInput[NodeInput], reverse_related.ManyToOneRel: ListInput[NodeInput], reverse_related.OneToOneRel: NodeInput, }