org.coursera.naptime.ari.graphql
Builds a Sangria enum from a Pegasus enum schema
Builds a Sangria enum from a Pegasus enum schema
Pegasus representation of the enum schema
Sangria EnumType schema
Builds a Sangria record from a Pegasus record schema
Builds a Sangria record from a Pegasus record schema
Pegasus representation of the record schema
namespace for the record (potentially used for child types)
Sangria ObjectType schema
Builds a Sangria union from a Pegasus union schema
Builds a Sangria union from a Pegasus union schema
Pegasus representation of the union schema
field name for the union (used for creating member type names)
namespace for the union (used for creating member type names)
Sangria UnionType with member object representations
Converts a field or namespace name to a GraphQL compatible name, replacing '.' with '_'
Converts a field or namespace name to a GraphQL compatible name, replacing '.' with '_'
Original field name
GraphQL-safe field name
Converts a resource name to a GraphQL compatible name.
Converts a resource name to a GraphQL compatible name. (i.e. 'courses.v1' to 'CoursesV1')
Naptime resource
GraphQL-safe resource name
Converts a resource to a GraphQL top-level name.
Converts a resource to a GraphQL top-level name. (i.e. 'courses.v1' to 'CoursesV1Resource')
Naptime resource
GraphQL-safe top-level resource name
Generates a single GraphQL schema field for a RecordDataSchema field type.
Generates a single GraphQL schema field for a RecordDataSchema field type. If the field is marked as a related resource, generates the field as a relationship to the associated resource. Otherwise, generates a generic schema for the model definition.
RecordDataSchema.Field for the field, pulled off the Courier schema for the model
The namespace for the source model, used to prevent name collisions
GraphQL schema Field with nested schema information
Generates an object-type for a given resource name, with each field on the merged output schema available on this object-type.
Generates an object-type for a given resource name, with each field on the merged output schema available on this object-type.
String name of the resource (i.e. 'courses.v1')
ObjectType for the resource
Generates an object-type for a given resource name, with each field on the merged output schema available on this object-type.
Generates an object-type for a given resource name, with each field on the merged output schema available on this object-type.
String name of the resource (i.e. 'courses.v1')
ObjectType for the resource
Generates a GraphQL schema for the provided set of resources to this class Returns a "root" object that has one field available for each Naptime Resource provided.*
Generates a GraphQL schema for the provided set of resources to this class Returns a "root" object that has one field available for each Naptime Resource provided.*
a Sangria GraphQL Schema with all resources defined
Finds a resource with a given name from the provided list of resources, or throws an exception if the resource cannot be found.
Finds a resource with a given name from the provided list of resources, or throws an exception if the resource cannot be found.
string name, in the format courses.v1 or CoursesV1
Resource object
Provides the resolver for a schema type, which implements how to retrieve a value from the raw data type.
Provides the resolver for a schema type, which implements how to retrieve a value from the raw data type. For instance, for the Integer type, it pulls an integer out of a DataMap and converts the types as appropriate.
Pegasus data schema type for the field
name of the field (to pull the value out of the data map)
Sangria Value
with the value and Sangria context on it
Converts a Pegasus DataSchema to Sangria GraphQL Schema type for use when generating a schema.
Converts a Pegasus DataSchema to Sangria GraphQL Schema type for use when generating a schema.
Nested objects schemas are computed recursively. Union types generate child ObjectTypes for their member classes
DataSchema from the field, which specifies the source field type
The field's name, which is used to generate union field member types
The field's namespace, which is used to prevent name colissions.
Sangria GraphQL OutputType, which represents the structure of the field in the schema