Skip to content

ketiko/graphql-java-custom-scalars

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

graphql-java-custom-scalars

CircleCI Codacy Badge Codacy Badge

https://search.maven.org/artifact/io.github.ketiko/graphql-java-custom-scalars

Custom Graphql Scalars for Java

This adds some custom Graphql scalars not found in the standard https://github.com/graphql-java/graphql-java library.

The https://github.com/graphql-java/graphql-java-extended-scalars project already adds many custom scalars. However they do not have a UUID scalar yet. There is a PR to add one, graphql-java/graphql-java-extended-scalars#18.

This project add more scalars not found in either of these projects.

Usage

First, register the scalar as a bean.

  // GraphqlConfig

  @Bean
  public GraphQLScalarType registerUuidScalar() {
    return CustomScalars.Uuid;
  }

Second, include the scalar in your graphql schema file.

# schema.graphqls

scalar UUID

About

Custom Graphql Scalars for Java

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages