Skip to content
This repository was archived by the owner on Nov 12, 2025. It is now read-only.
This repository was archived by the owner on Nov 12, 2025. It is now read-only.

Add extra validation when generating GraphQL fields #59

Description

@ianhoffman

https://github.com/mwildehahn/hack-graphql/pull/52/files#r632070440

A simpler option could be to just enforce that <<GraphQL\Field(...)>> can only be used once for each method name across the hierarchy -- e.g. if there's <<GraphQL\Field('foo')>> on an interface, adding <<GraphQL\Field>> on the overridden method in the subclass would be illegal.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions