io.github.ketiko:graphql-java-custom-scalars

Additional custom Graphql scalars for the graphql-java library.

License

License

Categories

Categories

Java Languages Scala
GroupId

GroupId

io.github.ketiko
ArtifactId

ArtifactId

graphql-java-custom-scalars
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

io.github.ketiko:graphql-java-custom-scalars
Additional custom Graphql scalars for the graphql-java library.
Project URL

Project URL

https://github.com/ketiko/graphql-java-custom-scalars
Source Code Management

Source Code Management

http://github.com/ketiko/graphql-java-custom-scalars/tree/master

Download graphql-java-custom-scalars

How to add to project

<!-- https://jarcasting.com/artifacts/io.github.ketiko/graphql-java-custom-scalars/ -->
<dependency>
    <groupId>io.github.ketiko</groupId>
    <artifactId>graphql-java-custom-scalars</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/io.github.ketiko/graphql-java-custom-scalars/
implementation 'io.github.ketiko:graphql-java-custom-scalars:1.0.0'
// https://jarcasting.com/artifacts/io.github.ketiko/graphql-java-custom-scalars/
implementation ("io.github.ketiko:graphql-java-custom-scalars:1.0.0")
'io.github.ketiko:graphql-java-custom-scalars:jar:1.0.0'
<dependency org="io.github.ketiko" name="graphql-java-custom-scalars" rev="1.0.0">
  <artifact name="graphql-java-custom-scalars" type="jar" />
</dependency>
@Grapes(
@Grab(group='io.github.ketiko', module='graphql-java-custom-scalars', version='1.0.0')
)
libraryDependencies += "io.github.ketiko" % "graphql-java-custom-scalars" % "1.0.0"
[io.github.ketiko/graphql-java-custom-scalars "1.0.0"]

Dependencies

compile (1)

Group / Artifact Type Version
com.graphql-java : graphql-java jar 13.0

test (1)

Group / Artifact Type Version
org.junit.jupiter : junit-jupiter jar 5.6.2

Project Modules

There are no modules declared in this project.

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, https://github.com/graphql-java/graphql-java-extended-scalars/pull/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

Versions

Version
1.0.0