Skip to content
This repository was archived by the owner on Dec 19, 2023. It is now read-only.

Unable to match type definition for scalar type Long, after upgrading to 14.0.0 #863

Answered by oliemansm
ghoshrahul asked this question in Q&A
Discussion options

You must be logged in to vote

These non default scalars have been removed from core graphql-java library in one of the intermediate versions and have been moved to the graphql-java-extended-scalars package. To use it you have to add that dependency:

<dependency>
  <groupId>com.graphql-java</groupId>
  <artifactId>graphql-java-extended-scalars</artifactId>
  <version>18.1</version>
</dependency>

Add the scalar definition to your GraphQL schema file:

scalar Long

And expose the Long scalar provided by the graphql-java-extended-scalars library as a Spring Bean in one of your configuration classes:

import static graphql.scalars.ExtendedScalars.GraphQLLong;

import graphql.schema.GraphQLScalarType;
import org.springframework.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@ghoshrahul
Comment options

@ghoshrahul
Comment options

@oliemansm
Comment options

@ghoshrahul
Comment options

Answer selected by ghoshrahul
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants