Closed fireteam99 closed 1 month ago
Woow, this is really interesting... Wondering what might be causing that.
Btw, does that only happen for strawberry django schemas, or for strawberry in general?
Good point, I think this might be a strawberry issue rather than a strawberry django issue
We have solved a lot of "duplicated type name" issues in strawberry, so probably there's a high possibility of this have being solved.
I'm going to close this, specially as this is not a strawberry-django issue but a strawberry one. In case this has not been fixed, please comment here and/or open an issue on strawberry itself so that we can try to find the root cause of the issue and fix it
Describe the Bug
Attempting to import the root schema into a conftest using a relative path will cause a cryptic
strawberry.exceptions.duplicated_type_name.DuplicatedTypeName
error. Using a absolute path fixes the problem.Example
Stack trace
System Information
0.199.2
, strawberry-graphql-django0.16.0
Additional Context
This bug was not present in previous versions. Specifically, it was working as expected in: strawberry-graphql
0.133.5
, strawberry-graphql-django0.7
Upvote & Fund