Patrick Arminio

Results 669 comments of Patrick Arminio

I don't want to overcomplicate this, but it would be interesting to investigate if we can use `@overload` for this too, something like: ```python import strawberry @strawberry.type class Query: @strawberry.field...

I think this is almost ready to go! I just need to test it with codegen 😊

actually, maybe we should introduce a new decorator to make this easier to use: ```python @strawberry.one_of_input class ExampleInputTagged: a: str | None b: int | None ```

/pre-release

I've tested this with GraphQL-codegen and it works when using the SDL, but doesn't work when using introspection, but that's not our issue 😊

/pre-release

@bradleyoesch feel free to try the new pre-release 😊

/pre-release

I think that's expected when field aren't optional, if you make the failing field option it should work as expected. Here's a test without the exception: https://play.strawberry.rocks/?gist=05181d8366f2584d390ccdac21d5d000

@kkom from the spec: https://spec.graphql.org/October2021/#sec-Handling-Field-Errors Here's an example that better shows the behaviour of failures in nested fields: https://play.strawberry.rocks/?gist=b1ca6f1c33325331a76e36fb0d80ebfa