Skip to content

Scalars example implementaion is outdated (interface Coercing) #3347

@jodeleit-es

Description

@jodeleit-es

Describe the bug
The code example at https://www.graphql-java.com/documentation/scalars/#example-implementation is outdated. It overrides now deprecated methods and if you follow the example stuff breaks. Further analysis is pending, but it seams that introspection queries throw a 400 with an error message like exception text "The non deprecated version of valueToLiteral has not been implemented by this scalar : class org.restheart.graphql.scalars.bsonCoercing.GraphQLBsonBooleanCoercing" or similar, when the Schema has default values defined.

To Reproduce
Use the code from the example, it should fail in a similar way.

Metadata

Metadata

Assignees

No one assigned

    Labels

    keep-openTells Stale Bot to keep PRs and issues open

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions