Skip to content

Commit 3b627c0

Browse files
committed
Let ID be every type, since it is allowed by
See GraphQL Spec https://graphql.org/learn/schema/#scalar-types
1 parent e7e2b95 commit 3b627c0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/main/java/graphql/annotations/processor/typeFunctions/IDFunction.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,7 @@ public String getTypeName(Class<?> aClass, AnnotatedType annotatedType) {
3030

3131
@Override
3232
public boolean canBuildType(Class<?> aClass, AnnotatedType annotatedType) {
33-
return annotatedType != null
34-
&& (aClass == Integer.class || aClass == int.class || aClass == String.class)
35-
&& annotatedType.isAnnotationPresent(GraphQLID.class);
33+
return annotatedType != null && annotatedType.isAnnotationPresent(GraphQLID.class);
3634
}
3735

3836
@Override

0 commit comments

Comments
 (0)