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

no scalar implementation for the named 'XXX' scalar type #830

Open
ANUGLYPLUGIN opened this issue May 24, 2022 · 4 comments
Open

no scalar implementation for the named 'XXX' scalar type #830

ANUGLYPLUGIN opened this issue May 24, 2022 · 4 comments
Labels

Comments

@ANUGLYPLUGIN
Copy link

  • dependencies
        <dependency>
            <groupId>com.graphql-java-kickstart</groupId>
            <artifactId>graphql-spring-boot-starter</artifactId>
            <version>12.0.0</version>
        </dependency>
        <dependency>
            <groupId>com.graphql-java-kickstart</groupId>
            <artifactId>graphql-java-tools</artifactId>
            <version>12.0.0</version>
        </dependency>
  • Schema
scalar Long

type Mutation {

}
  • yml config
graphql:
  servlet:
    enabled: true
    cors-enabled: true
    exception-handlers-enabled: true
  playground:
    enabled: false
  voyager:
    enabled: true
  extended-scalars: BigDecimal, Date, Long
  • errors
Caused by: SchemaProblem{errors=[There is no scalar implementation for the named  'Long' scalar type]}
	at graphql.schema.idl.SchemaGenerator.makeExecutableSchema(SchemaGenerator.java:82)
	at graphql.schema.idl.SchemaGenerator.makeExecutableSchema(SchemaGenerator.java:58)
	at org.springframework.graphql.execution.DefaultSchemaResourceGraphQlSourceBuilder.initGraphQlSchema(DefaultSchemaResourceGraphQlSourceBuilder.java:112)
	at org.springframework.graphql.execution.AbstractGraphQlSourceBuilder.build(AbstractGraphQlSourceBuilder.java:85)
	at org.springframework.boot.autoconfigure.graphql.GraphQlAutoConfiguration.graphQlSource(GraphQlAutoConfiguration.java:91)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154)

@BlasiusSecundus
Copy link

I quickly tested on one of my projects, and could not reproduce the issue - the scalar was successfully registered and the schema was created and working correctly.

Could you please share the project? If not, can you please create a minimal project that reproduces the issue?

@ANUGLYPLUGIN
Copy link
Author

Absolutely ok!
Url: https://github.com/ANUGLYPLUGIN/gqlone

@ANUGLYPLUGIN
Copy link
Author

My project was just a test project all the time!

@ZohebMOPO
Copy link

does this helps?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants