We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
create_type
ValueError: Field doesn't have a name. Fields passed to create_type must define a name by passing the name argument to strawberry.field.
name
strawberry.field
It seems like that there is an issue when using create_type and passing fields.
Looking at the code here it uses python_name
python_name
strawberry/strawberry/tools/create_type.py
Line 36 in ec4cf15
which seems to be hardcoded to None here
strawberry/strawberry/field.py
Line 514 in ec4cf15
The text was updated successfully, but these errors were encountered:
@jakubikan can you show us an example of the code that triggers this issue? 😊
Sorry, something went wrong.
It basically happens when you don't pass a resolver to field
my_name = strawberry.field(name="myName") query = create_type(f"Query", [my_name])
No branches or pull requests
Describe the Bug
ValueError: Field doesn't have a name. Fields passed to
create_type
must define a name by passing thename
argument tostrawberry.field
.It seems like that there is an issue when using create_type and passing fields.
Looking at the code here it uses
python_name
strawberry/strawberry/tools/create_type.py
Line 36 in ec4cf15
which seems to be hardcoded to None here
strawberry/strawberry/field.py
Line 514 in ec4cf15
System Information
Additional Context
Upvote & Fund
The text was updated successfully, but these errors were encountered: