-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #70 from kirpi4ik/java-gql-v17
Upgrade to the latest graphql-java v17.3
- Loading branch information
Showing
32 changed files
with
175 additions
and
488 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
core/src/main/groovy/org/grails/gorm/graphql/types/scalars/CustomScalars.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package org.grails.gorm.graphql.types.scalars | ||
|
||
import graphql.schema.GraphQLScalarType | ||
import org.grails.gorm.graphql.types.scalars.coercing.* | ||
|
||
/** | ||
* Custom scalars | ||
*/ | ||
class CustomScalars { | ||
|
||
public static final GraphQLScalarType GraphQLByteArray = GraphQLScalarType.newScalar() | ||
.name('ByteArray').description('Built-in ByteArray').coercing(new ByteArrayCoercion()).build() | ||
public static final GraphQLScalarType GraphQLCharacterArray = GraphQLScalarType.newScalar() | ||
.name('CharacterArray').description('Built-in CharacterArray').coercing(new CharacterArrayCoercion()).build() | ||
public static final GraphQLScalarType GraphQLCurrency = GraphQLScalarType.newScalar() | ||
.name('Currency').description('Accepts a string currency code').coercing(new CurrencyCoercion()).build() | ||
public static final GraphQLScalarType GraphQLSqlDate = GraphQLScalarType.newScalar() | ||
.name('SqlDate').description('Accepts a number or a string in the format "yyyy-[m]m-[d]d"').coercing(new SqlDateCoercion()).build() | ||
public static final GraphQLScalarType GraphQLTime = GraphQLScalarType.newScalar() | ||
.name('Time').description('Accepts a number or string in the format "hh:mm:ss"').coercing(new TimeCoercion()).build() | ||
public static final GraphQLScalarType GraphQLTimestamp = GraphQLScalarType.newScalar() | ||
.name('Timestamp').description('Accepts a numer or a string in the format "yyyy-[m]m-[d]d hh:mm:ss[.f...]"').coercing(new TimestampCoercion()).build() | ||
public static final GraphQLScalarType GraphQLTimeZone = GraphQLScalarType.newScalar() | ||
.name('TimeZone').description('Accepts a string time zone id').coercing(new TimeZoneCoercion()).build() | ||
public static final GraphQLScalarType GraphQLURI = GraphQLScalarType.newScalar() | ||
.name('URI').description('Accepts a string in the form of a URI').coercing(new URICoercion()).build() | ||
public static final GraphQLScalarType GraphQLURL = GraphQLScalarType.newScalar() | ||
.name('URL').description('Accepts a string in the form of a URL').coercing(new URLCoercion()).build() | ||
public static final GraphQLScalarType GraphQLUUID = GraphQLScalarType.newScalar() | ||
.name('UUID').description('Accepts a string to be converted to a UUID').coercing(new UUIDCoercion()).build() | ||
|
||
} |
19 changes: 0 additions & 19 deletions
19
core/src/main/groovy/org/grails/gorm/graphql/types/scalars/GraphQLByteArray.groovy
This file was deleted.
Oops, something went wrong.
19 changes: 0 additions & 19 deletions
19
core/src/main/groovy/org/grails/gorm/graphql/types/scalars/GraphQLCharacterArray.groovy
This file was deleted.
Oops, something went wrong.
19 changes: 0 additions & 19 deletions
19
core/src/main/groovy/org/grails/gorm/graphql/types/scalars/GraphQLCurrency.groovy
This file was deleted.
Oops, something went wrong.
19 changes: 0 additions & 19 deletions
19
core/src/main/groovy/org/grails/gorm/graphql/types/scalars/GraphQLDate.groovy
This file was deleted.
Oops, something went wrong.
19 changes: 0 additions & 19 deletions
19
core/src/main/groovy/org/grails/gorm/graphql/types/scalars/GraphQLSqlDate.groovy
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.