Skip to content

Support the new strawberry.Maybe type #753

@cpontvieux-systra

Description

@cpontvieux-systra

It’s documented in the Strawberry release 0.266.1

The commit is strawberry-graphql/strawberry#3791

To support it, some test should be added to check for a Maybe type and extract the .value if true.

There are helpers in the strawberry code base:
https://github.com/strawberry-graphql/strawberry/blob/main/strawberry/types/maybe.py

P.S. When I tried to use it with strawberry django, the first thing that crash was in the process_filter method.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions