All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.opentripplanner.ext.transmodelapi.model.framework.KeyValueType Maven / Gradle / Ivy

There is a newer version: 2.5.0
Show newest version
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();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy