Packages

trait GraphQL[-R] extends AnyRef

A GraphQL[-R] represents a GraphQL API whose execution requires a ZIO environment of type R.

It is intended to be created only once, typically when you start your server. The introspection schema will be generated when this class is instantiated.

Self Type
GraphQL[R]
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. GraphQL
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract val additionalDirectives: List[__Directive]
    Attributes
    protected
  2. abstract val schemaBuilder: RootSchemaBuilder[R]
    Attributes
    protected
  3. abstract val wrappers: List[Wrapper[R]]
    Attributes
    protected

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def @@[R2 <: R](wrapper: Wrapper[R2]): GraphQL[R2]

    A symbolic alias for withWrapper.

  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  7. final def combine[R1 <: R](that: GraphQL[R1]): GraphQL[R1]

    Merges this GraphQL API with another GraphQL API.

    Merges this GraphQL API with another GraphQL API. In case of conflicts (same field declared on both APIs), fields from that API will be used.

    that

    another GraphQL API object

    returns

    a new GraphQL API

  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  11. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. final def interpreter: IO[ValidationError, GraphQLInterpreter[R, CalibanError]]

    Creates an interpreter from your API.

    Creates an interpreter from your API. A GraphQLInterpreter is a wrapper around your API that allows adding some middleware around the query execution. Fails with a caliban.CalibanError.ValidationError if the schema is invalid.

  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  17. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  18. final def rename(queriesName: Option[String] = None, mutationsName: Option[String] = None, subscriptionsName: Option[String] = None): GraphQL[R]

    Renames the root queries, mutations and subscriptions objects.

    Renames the root queries, mutations and subscriptions objects.

    queriesName

    a new name for the root queries object

    mutationsName

    a new name for the root mutations object

    subscriptionsName

    a new name for the root subscriptions object

    returns

    a new GraphQL API

  19. final def render: String

    Returns a string that renders the API types into the GraphQL format.

  20. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  21. final def toDocument: Document

    Converts the schema to a Document.

  22. def toString(): String
    Definition Classes
    AnyRef → Any
  23. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  24. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  25. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  26. final def withAdditionalTypes(types: List[__Type]): GraphQL[R]

    Adds linking to additional types which are unreachable from the root query.

    Adds linking to additional types which are unreachable from the root query.

    types

    The type definitions to add.

    Note

    This is for advanced usage only i.e. when declaring federation type links

  27. final def withWrapper[R2 <: R](wrapper: Wrapper[R2]): GraphQL[R2]

    Attaches a function that will wrap one of the stages of query processing (parsing, validation, execution, field execution or overall).

    Attaches a function that will wrap one of the stages of query processing (parsing, validation, execution, field execution or overall).

    wrapper

    a wrapping function

    returns

    a new GraphQL API

  28. final def |+|[R1 <: R](that: GraphQL[R1]): GraphQL[R1]

    Operator alias for combine.

Inherited from AnyRef

Inherited from Any

Ungrouped