Class/Object

org.coursera.naptime.ari.graphql

SangriaGraphQlSchemaBuilder

Related Docs: object SangriaGraphQlSchemaBuilder | package graphql

Permalink

class SangriaGraphQlSchemaBuilder extends StrictLogging

Linear Supertypes
StrictLogging, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. SangriaGraphQlSchemaBuilder
  2. StrictLogging
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SangriaGraphQlSchemaBuilder(resources: Set[Resource], schemas: Map[String, RecordDataSchema])

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. def formatResourceName(resource: Resource): String

    Permalink

    Converts a resource name to a GraphQL compatible name.

    Converts a resource name to a GraphQL compatible name. (i.e. 'courses.v1' to 'CoursesV1')

    resource

    Naptime resource

    returns

    GraphQL-safe resource name

  10. def formatResourceTopLevelName(resource: Resource): String

    Permalink

    Converts a resource to a GraphQL top-level name.

    Converts a resource to a GraphQL top-level name. (i.e. 'courses.v1' to 'CoursesV1Resource')

    resource

    Naptime resource

    returns

    GraphQL-safe top-level resource name

  11. def generateGetHandler(resource: Resource, handler: Handler): Field[SangriaGraphQlContext, DataMap]

    Permalink
  12. def generateListHandler(resource: Resource, handler: Handler): Field[SangriaGraphQlContext, DataMap]

    Permalink
  13. def generateLookupTypeForResource(resourceName: String): Option[ObjectType[SangriaGraphQlContext, DataMap]]

    Permalink

    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.

    resourceName

    String name of the resource (i.e. 'courses.v1')

    returns

    ObjectType for the resource

  14. def generateSchema(): Schema[SangriaGraphQlContext, DataMap]

    Permalink

    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.*

    returns

    a Sangria GraphQL Schema with all resources defined

  15. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  16. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  17. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  18. val logger: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    StrictLogging
  19. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. val schemaMetadata: SchemaMetadata

    Permalink
  23. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  24. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  25. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from StrictLogging

Inherited from AnyRef

Inherited from Any

Ungrouped