Skip to content

Support All Mappers To Have Scalar Check #532

@amksde

Description

@amksde

I had recently tried to make a List field in my class a scalar by annotating it with @GraphQLScalar. But it didn't work. It seems the list field passes the supports check for ListMapper, and it didn't reach ObjectScalarMapper since it is declared later.

Any reason the check for @GraphQLScalar is not provided for mappers, so that eventually all fields that are annotated with @GraphQLScalar reach ObjectScalarMapper and can be termed scalar in the generated schema?

return ClassUtils.isSuperClass(Collection.class, type);

Can we provide a check type.isAnnotationPresent(GraphQLScalar.class) in all type default type-mappers?

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