org.opentripplanner.ext.transmodelapi.model.framework.KeyValueType Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of otp Show documentation
Show all versions of otp Show documentation
The OpenTripPlanner multimodal journey planning system
package org.opentripplanner.ext.transmodelapi.model.framework;
import graphql.Scalars;
import graphql.schema.GraphQLFieldDefinition;
import graphql.schema.GraphQLObjectType;
public class KeyValueType {
public static final GraphQLObjectType TYPE = GraphQLObjectType.newObject()
.name("KeyValue")
.field(GraphQLFieldDefinition.newFieldDefinition()
.name("key")
.description("Identifier of value.")
.type(Scalars.GraphQLString)
.dataFetcher(environment -> null)
.build())
.field(GraphQLFieldDefinition.newFieldDefinition()
.name("value")
.description("The actual value")
.type(Scalars.GraphQLString)
.dataFetcher(environment -> null)
.build())
.field(GraphQLFieldDefinition.newFieldDefinition()
.name("typeOfKey")
.description("Identifier of type of key")
.type(Scalars.GraphQLString)
.dataFetcher(environment -> null)
.build())
.build();
}