Skip to content

Interfaces should not work with input types #1236

Open
@ZeroIntensity

Description

@ZeroIntensity

based on this stackoverflow question, graphql doesn't support interfaces with input types, and yet strawberry allows this:

import strawberry

@strawberry.interface
class SomeInterface:
    some_arg: str

@strawberry.input
class SomeInput(SomeInterface): # this should throw an error
    another_arg: str

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions