Skip to content

Inconsistent handling of directives in buildASTSchema and buildClientSchemaΒ #3419

Open
@Cito

Description

@Cito

I noticed a difference in how specified (standard) directives are added by buildASTSchema vs buildClientSchema.

In the former function, the specified directives are added automatically if they are missing.

In the latter function, the specified directives are not added automatically if they are missing.

I think this should be handled in the same way by both method - this different behavior caused some head-scratching here.

The main problem is buildClientSchema not adding the specified directives. Maybe we can change this to add them, first optionally, and then in the next major version by default?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions