Skip to content

GraphQLSchema object created without custom directives #302

Open
@marmys

Description

@marmys

Hi.

When custom directive is declared in schema, for instance

directive @notsortable on FIELD_DEFINITION

then expected behaviour is that this directive will be in GraphQLSchema object.

This does not happen with graphql-java-tools library. What happens is that GraphQLSchema object is created only with default directives ("include", "skip")

In graphql-java it works as expected. When custom direcitve is added then GraphQLSchema object has it in it's directives set.

This is a problem when other libraries depend on stuff that is present in GraphQLSchema object.
Like for instance federation-jvm
https://github.com/apollographql/federation-jvm
This library adds additional query that should return schema as a string.
Response is build based on GraphQLSchema object. When GraphQLSchema object does not contain directive definition then produced schema string contains invalid schema without directive definition.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions