From 5fb7b543779360c8c3ffbf9d07e5769a14a1a0ed Mon Sep 17 00:00:00 2001 From: Andrew Swait Date: Fri, 6 Oct 2023 21:15:26 +0100 Subject: [PATCH] docs: update docstring for `type` arg of `Field` (#1527) --- graphene/types/field.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/graphene/types/field.py b/graphene/types/field.py index dafb04b5..06ba8487 100644 --- a/graphene/types/field.py +++ b/graphene/types/field.py @@ -43,7 +43,8 @@ class Field(MountedType): args: type (class for a graphene.UnmountedType): Must be a class (not an instance) of an unmounted graphene type (ex. scalar or object) which is used for the type of this - field in the GraphQL schema. + field in the GraphQL schema. You can provide a dotted module import path (string) + to the class instead of the class itself (e.g. to avoid circular import issues). args (optional, Dict[str, graphene.Argument]): Arguments that can be input to the field. Prefer to use ``**extra_args``, unless you use an argument name that clashes with one of the Field arguments presented here (see :ref:`example`).