https://github.com/msg-systems/graphql-tools-types-java
https://github.com/msg-systems/graphql-tools-types-java
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/msg-systems/graphql-tools-types-java
- Owner: msg-systems
- License: mit
- Created: 2020-04-25T21:46:10.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-08-01T18:00:44.000Z (almost 2 years ago)
- Last Synced: 2025-03-15T23:57:11.232Z (3 months ago)
- Language: Java
- Size: 104 KB
- Stars: 0
- Watchers: 10
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# About
graphql-tools-types-java is the **Java** implementation of the **JavaScript** graphql-tools-types reference implementation.
The documentation of the reference implementation can be found at (https://github.com/rse/graphql-tools-types).# Installation
## Maven```
mvn clean install
```## Gradle
FIXME
# Usage
## Maven
```com.graphqlio
graphql-tools-types-java
0.0.9```
## Gradle
```
dependencies {
compile 'com.graphqlio:graphql-tools-types-java:0.0.9'
}
```# Sample
graphql schema example:
```
type SampleType {
signature: UUID
expires: Date
null4ever: Void
data: JSON
}
```values example:
```
{
signature: "3b241101-e2bb-4255-8caf-4136c566a964",
expires: "2020-02-02 20:00:02",
null4ever: null,
data: "{ a: \"123\", b: [ 1, 2, 3 ] }"
}
```Working with GttDateType:
```
GttDateType type = new GttDateType();
Object date_1_result = type.getCoercing().parseLiteral(new StringValue("2005-05-05 05:05:05"));
Object date_2_result = type.getCoercing().parseValue("2005-05-05 05:05:05");
Object string_result = type.getCoercing().serialize(date_2_result);
```# License
Design and Development by msg Applied Technology Research
Copyright (c) 2019-2020 msg systems ag (http://www.msg-systems.com/)
All Rights Reserved.
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.