-
Notifications
You must be signed in to change notification settings - Fork 179
Open
Description
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?
graphql-spqr/src/main/java/io/leangen/graphql/generator/mapping/common/ListMapper.java
Line 33 in 57fc2fa
| return ClassUtils.isSuperClass(Collection.class, type); |
| typeMappers = Arrays.asList( |
Can we provide a check type.isAnnotationPresent(GraphQLScalar.class) in all type default type-mappers?
Metadata
Metadata
Assignees
Labels
No labels