Package

sangria

schema

Permalink

package schema

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. schema
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. sealed trait AbstractType extends Type with Named

    Permalink
  2. sealed trait Action[+Ctx, +Val] extends AnyRef

    Permalink
  3. final case class Args(raw: Map[String, Any]) extends AnyVal with Product with Serializable

    Permalink
  4. case class Argument[T](name: String, argumentType: InputType[_], description: Option[String], defaultValue: Option[Tuple2[_, ToInput[_, _]]], fromInput: FromInput[_]) extends InputValue[T] with Named with Product with Serializable

    Permalink
  5. trait ArgumentType[T] extends AnyRef

    Permalink
  6. trait ArgumentTypeLowPrio extends ArgumentTypeLowestPrio

    Permalink
  7. trait ArgumentTypeLowestPrio extends AnyRef

    Permalink
  8. trait AstSchemaBuilder[Ctx] extends AnyRef

    Permalink
  9. class AstSchemaMaterializer[Ctx] extends AnyRef

    Permalink
  10. sealed trait CompositeType[T] extends Type with Named with OutputType[T]

    Permalink
  11. case class Context[Ctx, Val](value: Val, ctx: Ctx, args: Args, schema: Schema[Ctx, Val], field: Field[Ctx, Val], parentType: ObjectType[Ctx, Any], marshaller: ResultMarshaller, sourceMapper: Option[SourceMapper], deprecationTracker: DeprecationTracker, astFields: Vector[ast.Field], path: ExecutionPath) extends WithArguments with WithInputTypeRendering[Ctx] with Product with Serializable

    Permalink
  12. class DefaultAstSchemaBuilder[Ctx] extends AstSchemaBuilder[Ctx]

    Permalink
  13. class DefaultIntrospectionSchemaBuilder[Ctx] extends IntrospectionSchemaBuilder[Ctx]

    Permalink
  14. case class DefaultValueParser[T](schema: Schema[_, _], parser: InputParser[T], toInput: ToInput[T, _]) extends Product with Serializable

    Permalink
  15. class DefaultValuesValidationRule extends SchemaValidationRule

    Permalink
  16. trait Deferred[+T] extends AnyRef

    Permalink
  17. case class DeferredFutureValue[Ctx, Val](value: Future[Deferred[Val]]) extends LeafAction[Ctx, Val] with Product with Serializable

    Permalink
  18. trait DeferredResolver[-Ctx] extends AnyRef

    Permalink
  19. case class DeferredValue[Ctx, Val](value: Deferred[Val]) extends LeafAction[Ctx, Val] with Product with Serializable

    Permalink
  20. case class Directive(name: String, description: Option[String] = None, arguments: List[Argument[_]] = Nil, locations: Set[DirectiveLocation.Value] = Set.empty, shouldInclude: (DirectiveContext) ⇒ Boolean) extends HasArguments with Product with Serializable

    Permalink
  21. case class DirectiveContext(selection: WithDirectives, directive: Directive, args: Args) extends WithArguments with Product with Serializable

    Permalink
  22. case class EnumType[T](name: String, description: Option[String] = None, values: List[EnumValue[T]]) extends InputType[@@[T, CoercedScalaResult]] with OutputType[T] with LeafType with NullableType with UnmodifiedType with Named with Product with Serializable

    Permalink
  23. case class EnumValue[+T](name: String, description: Option[String] = None, value: T, deprecationReason: Option[String] = None) extends Named with Product with Serializable

    Permalink
  24. case class Field[Ctx, Val](name: String, fieldType: OutputType[_], description: Option[String], arguments: List[Argument[_]], resolve: (Context[Ctx, Val]) ⇒ Action[Ctx, _], deprecationReason: Option[String], tags: List[FieldTag], complexity: Option[(Ctx, Args, Double) ⇒ Double], manualPossibleTypes: () ⇒ List[ObjectType[_, _]]) extends Named with HasArguments with Product with Serializable

    Permalink
  25. case class FutureValue[Ctx, Val](value: Future[Val]) extends LeafAction[Ctx, Val] with ReduceAction[Ctx, Val] with Product with Serializable

    Permalink
  26. sealed trait HasArguments extends AnyRef

    Permalink
  27. case class InputField[T](name: String, fieldType: InputType[T], description: Option[String], defaultValue: Option[Tuple2[_, ToInput[_, _]]]) extends InputValue[T] with Named with Product with Serializable

    Permalink
  28. trait InputObjectDefaultResult[T] extends AnyRef

    Permalink
  29. trait InputObjectDefaultResultLowPrio extends AnyRef

    Permalink
  30. case class InputObjectType[T](name: String, description: Option[String] = None, fieldsFn: () ⇒ List[InputField[_]]) extends InputType[@@[T, InputObjectResult]] with NullableType with UnmodifiedType with Named with Product with Serializable

    Permalink
  31. sealed trait InputType[+T] extends Type

    Permalink
  32. trait InputValue[T] extends AnyRef

    Permalink
  33. class InterfaceImplementationValidationRule extends SchemaValidationRule

    Permalink
  34. case class InterfaceType[Ctx, Val](name: String, description: Option[String] = None, fieldsFn: () ⇒ List[Field[Ctx, Val]], interfaces: List[InterfaceType[Ctx, _]], manualPossibleTypes: () ⇒ List[ObjectType[_, _]]) extends ObjectLikeType[Ctx, Val] with AbstractType with Product with Serializable

    Permalink
  35. trait IntrospectionSchemaBuilder[Ctx] extends AnyRef

    Permalink
  36. class IntrospectionSchemaMaterializer[Ctx, T] extends AnyRef

    Permalink
  37. sealed trait LeafAction[+Ctx, +Val] extends Action[Ctx, Val]

    Permalink
  38. sealed trait LeafType extends Type with Named

    Permalink
  39. case class ListInputType[T](ofType: InputType[T]) extends InputType[Seq[T]] with NullableType with Product with Serializable

    Permalink
  40. case class ListType[T](ofType: OutputType[T]) extends OutputType[Seq[T]] with NullableType with Product with Serializable

    Permalink
  41. trait LowPrioActions extends AnyRef

    Permalink
  42. trait LowPrioValidOutType extends AnyRef

    Permalink
  43. class MappedUpdateCtx[Ctx, Val, NewVal] extends Action[Ctx, NewVal]

    Permalink
  44. case class MappingDeferred[A, +B](deferred: Deferred[A], mapFn: (A) ⇒ B) extends Deferred[B] with Product with Serializable

    Permalink
  45. sealed trait Named extends AnyRef

    Permalink
  46. sealed trait NullableType extends AnyRef

    Permalink
  47. sealed trait ObjectLikeType[Ctx, Val] extends OutputType[Val] with CompositeType[Val] with NullableType with UnmodifiedType with Named

    Permalink
  48. case class ObjectType[Ctx, Val](name: String, description: Option[String], fieldsFn: () ⇒ List[Field[Ctx, Val]], interfaces: List[InterfaceType[Ctx, _]], instanceCheck: (Any, Class[_], ObjectType[Ctx, Val]) ⇒ Boolean)(implicit evidence$1: ClassTag[Val]) extends ObjectLikeType[Ctx, Val] with Product with Serializable

    Permalink
  49. case class OptionInputType[T](ofType: InputType[T]) extends InputType[Option[T]] with Product with Serializable

    Permalink
  50. case class OptionType[T](ofType: OutputType[T]) extends OutputType[Option[T]] with Product with Serializable

    Permalink
  51. sealed trait OutputType[+T] extends Type

    Permalink
  52. case class PartialFutureValue[Ctx, Val](value: Future[PartialValue[Ctx, Val]]) extends LeafAction[Ctx, Val] with Product with Serializable

    Permalink
  53. case class PartialValue[Ctx, Val](value: Val, errors: Vector[Throwable]) extends LeafAction[Ctx, Val] with Product with Serializable

    Permalink
  54. case class PossibleInterface[Ctx, Concrete](interfaceType: InterfaceType[Ctx, _]) extends Product with Serializable

    Permalink
  55. trait PossibleInterfaceLowPrioImplicits extends AnyRef

    Permalink
  56. case class PossibleObject[Ctx, Abstract](objectType: ObjectType[Ctx, _]) extends Product with Serializable

    Permalink
  57. trait PossibleType[AbstrType, ConcreteType] extends AnyRef

    Permalink
  58. case class ProjectedName(name: String, children: Vector[ProjectedName] = Vector.empty) extends Product with Serializable

    Permalink
  59. case class ProjectionName(name: String) extends FieldTag with Product with Serializable

    Permalink
  60. trait Projector[Ctx, Val, Res] extends (Context[Ctx, Val]) ⇒ Action[Ctx, Res]

    Permalink
  61. sealed trait ReduceAction[+Ctx, +Val] extends Action[Ctx, Val]

    Permalink
  62. case class ScalarType[T](name: String, description: Option[String] = None, coerceUserInput: (Any) ⇒ Either[Violation, T], coerceOutput: (T, Set[MarshallerCapability]) ⇒ Any, coerceInput: (ast.Value) ⇒ Either[Violation, T], complexity: Double = 0.0D, scalarInfo: Set[ScalarValueInfo] = Set.empty) extends InputType[@@[T, CoercedScalaResult]] with OutputType[T] with LeafType with NullableType with UnmodifiedType with Named with Product with Serializable

    Permalink

    Defines a GraphQL scalar value type.

    Defines a GraphQL scalar value type.

    coerceOutput is allowed to return following scala values:

    • String
    • Boolean
    • Int
    • Long
    • Float
    • Double
    • scala.BigInt
    • scala.BigDecimal
    • sangria.ast.Value (it would be converted to raw scala value before given to a marshalling API)

    It may also return other values as well as long as underlying marshalling library supports them.

    You can provide additional meta-information to marshalling API with scalarInfo.

  63. case class Schema[Ctx, Val](query: ObjectType[Ctx, Val], mutation: Option[ObjectType[Ctx, Val]] = None, subscription: Option[ObjectType[Ctx, Val]] = None, additionalTypes: List[Type with Named] = Nil, directives: List[Directive] = BuiltinDirectives, validationRules: List[SchemaValidationRule] = SchemaValidationRule.default) extends Product with Serializable

    Permalink
  64. case class SchemaMaterializationException(message: String, cause: Throwable = null) extends Exception with Product with Serializable

    Permalink
  65. case class SchemaValidationException(violations: List[Violation]) extends IllegalArgumentException with Product with Serializable

    Permalink
  66. trait SchemaValidationRule extends AnyRef

    Permalink
  67. case class TryValue[Ctx, Val](value: Try[Val]) extends LeafAction[Ctx, Val] with ReduceAction[Ctx, Val] with Product with Serializable

    Permalink
  68. sealed trait Type extends AnyRef

    Permalink
  69. case class UnionType[Ctx](name: String, description: Option[String] = None, types: List[ObjectType[Ctx, _]]) extends OutputType[Any] with CompositeType[Any] with AbstractType with NullableType with UnmodifiedType with Product with Serializable

    Permalink
  70. sealed trait UnmodifiedType extends AnyRef

    Permalink
  71. class UpdateCtx[Ctx, Val] extends Action[Ctx, Val]

    Permalink
  72. trait ValidOutType[-Res, +Out] extends AnyRef

    Permalink
    Annotations
    @implicitNotFound( ... )
  73. case class Value[Ctx, Val](value: Val) extends LeafAction[Ctx, Val] with ReduceAction[Ctx, Val] with Product with Serializable

    Permalink
  74. trait WithArguments extends AnyRef

    Permalink
  75. trait WithInputTypeRendering[Ctx] extends AnyRef

    Permalink
  76. trait WithoutInputTypeTags[T] extends AnyRef

    Permalink
  77. trait WithoutInputTypeTagsLowPrio extends AnyRef

    Permalink

Value Members

  1. object Action extends LowPrioActions

    Permalink
  2. object Args extends Serializable

    Permalink
  3. object Argument extends Serializable

    Permalink
  4. object ArgumentType extends ArgumentTypeLowPrio

    Permalink
  5. object AstSchemaBuilder

    Permalink
  6. object AstSchemaMaterializer

    Permalink
  7. implicit val BigDecimalType: ScalarType[BigDecimal]

    Permalink
  8. implicit val BigIntType: ScalarType[BigInt]

    Permalink
  9. implicit val BooleanType: ScalarType[Boolean]

    Permalink
  10. val BuiltinDirectives: List[Directive]

    Permalink
  11. val BuiltinDirectivesByName: Map[String, Directive]

    Permalink
  12. val BuiltinScalars: List[ScalarType[_]]

    Permalink
  13. val BuiltinScalarsByName: Map[String, ScalarType[_]]

    Permalink
  14. val DefaultDeprecationReason: String

    Permalink
  15. object DefaultIntrospectionSchemaBuilder

    Permalink
  16. object DefaultValueParser extends Serializable

    Permalink
  17. object DefaultValueRenderer

    Permalink
  18. object DeferredResolver

    Permalink
  19. val DeprecatedDirective: Directive

    Permalink
  20. object DirectiveLocation extends Enumeration

    Permalink
  21. object Field extends Serializable

    Permalink
  22. implicit val FloatType: ScalarType[Double]

    Permalink
  23. val IDType: ScalarType[String]

    Permalink
  24. val IfArg: Argument[Boolean]

    Permalink
  25. val IncludeDirective: Directive

    Permalink
  26. object InputField extends Serializable

    Permalink
  27. object InputObjectDefaultResult extends InputObjectDefaultResultLowPrio

    Permalink
  28. object InputObjectType extends Serializable

    Permalink
  29. implicit val IntType: ScalarType[Int]

    Permalink
  30. object InterfaceType extends Serializable

    Permalink
  31. object IntrospectionSchemaBuilder

    Permalink
  32. object IntrospectionSchemaMaterializer

    Permalink
  33. implicit val LongType: ScalarType[Long]

    Permalink
  34. object Named

    Permalink
  35. object ObjectType extends Serializable

    Permalink
  36. object PossibleInterface extends PossibleInterfaceLowPrioImplicits with Serializable

    Permalink
  37. object PossibleObject extends Serializable

    Permalink
  38. object PossibleType

    Permalink
  39. object ProjectionExclude extends FieldTag with Product with Serializable

    Permalink
  40. object Projector

    Permalink
  41. val ReasonArg: Argument[String]

    Permalink
  42. object ReduceAction

    Permalink
  43. object Schema extends Serializable

    Permalink
  44. object SchemaValidationRule

    Permalink
  45. val SkipDirective: Directive

    Permalink
  46. implicit val StringType: ScalarType[String]

    Permalink
  47. object UnsupportedDeferError extends Exception with Product with Serializable

    Permalink
  48. object UpdateCtx

    Permalink
  49. object ValidOutType extends LowPrioValidOutType

    Permalink
  50. object WithoutInputTypeTags extends WithoutInputTypeTagsLowPrio

    Permalink
  51. def fields[Ctx, Val](fields: Field[Ctx, Val]*): List[Field[Ctx, Val]]

    Permalink
  52. def interfaces[Ctx, Concrete](interfaces: PossibleInterface[Ctx, Concrete]*): List[PossibleInterface[Ctx, Concrete]]

    Permalink
  53. def possibleTypes[Ctx, Abstract](objectTypes: PossibleObject[Ctx, Abstract]*): List[PossibleObject[Ctx, Abstract]]

    Permalink
  54. def valueOutput[T](value: T, capabilities: Set[MarshallerCapability]): T

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped