This repository has been archived by the owner on Dec 19, 2023. It is now read-only.
Replies: 1 comment
-
Long data type is not supported as default available type in graphql. However, you can use extended scalar lib (graphql-java-extended-scalars) to use types other than default ones provided by graphql. Once you have this dependency in your pom.xml or build.gradle, you need to define a bean for it as follows (assuming you are using Spring):
Then, declare this type in your graphqls schema as follows: You will be good to go! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I am just learning graphql using Springboot and was trying some simple programs. Now I have encountered a problem and not able to understand why it's throwing this error.
Can someone please help me to point out what mistake I have made or is it a Bug?
Error:
graphql.kickstart.tools.SchemaClassScannerError: Unable to match type definition (TypeName{name='Long'}) with java type (class java.lang.Long): No TypeDefinition for type name Long
author.graphqls
Author.java
Beta Was this translation helpful? Give feedback.
All reactions