Comments (9)
Hey @devkral ,
Is that issue happening with the v3 release?
Could you provide me a step by step on how to reproduce that traceback using your project?
from strawberry-django-plus.
Steps to reproduce
- setup secretgraph (cloning repo and install the virtual environment with poetry install)
- poetry run ./manage.py export_schema (here happens the crash)
from strawberry-django-plus.
Hrm, I could reproduce the issue in your repo, but I'm not really sure what is happening there. It seems that the argument is loosing its namespace in the StrawberryAnnotation
, but I don't know what is causing it. Maybe it is some weird interaction based on the fact that you do some kind of nested mutation resolving (first time seeing something like this =P).
Also, the input mutation is now using the strawberry's InputMutationExtension
, so I think the issue is probably there.
Could you try to create a minimal contained reproduction example for this? It would be nice to test if the minimal reproduction example happens only with strawberry-django-plus or if it does happen when when using the InputMutationExtension directly.
from strawberry-django-plus.
thanks for the hint, did test it against InputMutationExtension. it fails with only
updateOrCreateContent: ContentMutation = gql.mutation(
resolver=mutate_content,
extensions=[InputMutationExtension()],
handle_django_errors=False,
)
for a poc just remove all input_mutation except one in the secretgraph/server/schema/schema.py
and modify it.
The command works if all input_mutations are removed
from strawberry-django-plus.
I think it is a bug in InputMutationExtension
from strawberry-django-plus.
It could be related to:
strawberry-graphql/strawberry#2864
from strawberry-django-plus.
I could fix this error by removing from __future__ import annotations
. I provided a POC as test in strawberry:
strawberry-graphql/strawberry#2868
from strawberry-django-plus.
@devkral oh, that's nice! I'll take a look at it soon to try to understand what might be going on
from strawberry-django-plus.
fixed (PR merged and tests don't fail anymore).
from strawberry-django-plus.
Related Issues (20)
- Querying both sides of a OneToOneField at the same time is an error HOT 5
- Can't make a union of `gql.Connection | OperationMessage` HOT 1
- Headers are not passed to `self.client.post` in `TestClient.request` HOT 1
- Can't make a union of `gql.Connection | OperationMessage` (part 2) HOT 9
- clash with the novel strawberry.relay module (GlobalId)
- relay: compatibility with the new strawberry.relay module HOT 2
- more SQLs then expected HOT 6
- need for an async resolvers.update HOT 1
- NameError with lazy types in relay connection annotations
- filters not showing up HOT 1
- Optimise manually prefetched field HOT 1
- Got an unexpected keyword argument 'filters' HOT 2
- NodeExtension broken with Strawberry HOT 1
- class inheritance not being detected? HOT 8
- hard dependency on contenttypes framework in optimizer
- hard dependency on django.contrib.auth HOT 1
- Using input_mutation with a None return type throws an exception HOT 1
- Query resolution is really slow HOT 15
- This repo has been merged into strawberry-graphql-django and it is now deprecated HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from strawberry-django-plus.