Packages

object auto extends AutoSchemaDerivation[R]

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. auto
  2. AutoSchemaDerivation
  3. LowPriorityDerivedSchema
  4. GenericSchema
  5. TemporalSchema
  6. SchemaDerivation
  7. CommonSchemaDerivation
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. type Typeclass[T] = Schema[R, T]
    Definition Classes
    CommonSchemaDerivation

Value Members

  1. object auto extends AutoSchemaDerivation[R]
    Definition Classes
    SchemaDerivation
  2. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  3. final def ##: Int
    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. implicit val base64CursorSchema: Schema[Any, Base64Cursor]
    Definition Classes
    GenericSchema
  7. implicit val bigDecimalSchema: Schema[Any, BigDecimal]
    Definition Classes
    GenericSchema
  8. implicit val bigIntSchema: Schema[Any, BigInt]
    Definition Classes
    GenericSchema
  9. implicit val booleanSchema: Schema[Any, Boolean]
    Definition Classes
    GenericSchema
  10. implicit def chunkSchema[R0, A](implicit ev: Schema[R0, A]): Schema[R0, Chunk[A]]
    Definition Classes
    GenericSchema
  11. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  12. def combine[T](ctx: ReadOnlyCaseClass[Typeclass, T]): Typeclass[T]
    Definition Classes
    CommonSchemaDerivation
  13. def customErrorEffectSchema[R0, R1 >: R0, R2 >: R0, E, A](convertError: (E) => ExecutionError)(implicit ev: Schema[R2, A]): Schema[R0, ZIO[R1, E, A]]
    Definition Classes
    GenericSchema
  14. def customErrorQuerySchema[R0, R1 >: R0, R2 >: R0, E, A](convertError: (E) => ExecutionError)(implicit ev: Schema[R2, A]): Schema[R0, ZQuery[R1, E, A]]
    Definition Classes
    GenericSchema
  15. def customErrorStreamSchema[R0, R1 >: R0, R2 >: R0, E, A](convertError: (E) => ExecutionError)(implicit ev: Schema[R2, A]): Schema[R0, ZStream[R1, E, A]]
    Definition Classes
    GenericSchema
  16. def customizeInputTypeName(name: String): String

    Default naming logic for input types.

    Default naming logic for input types. This is needed to avoid a name clash between a type used as an input and the same type used as an output. GraphQL needs 2 different types, and they can't have the same name. By default, the "Input" suffix is added after the type name, given that it is not already present.

    Definition Classes
    CommonSchemaDerivation
  17. implicit def derivedSchema[R, T](implicit derived: Derived[Schema[R, T]]): Schema[R, T]
    Definition Classes
    LowPriorityDerivedSchema
  18. def dispatch[T](ctx: SealedTrait[Typeclass, T]): Typeclass[T]
    Definition Classes
    CommonSchemaDerivation
  19. implicit val doubleSchema: Schema[Any, Double]
    Definition Classes
    GenericSchema
  20. implicit def effectSchema[R0, R1 >: R0, R2 >: R0, E <: Throwable, A](implicit ev: Schema[R2, A]): Schema[R0, ZIO[R1, E, A]]
    Definition Classes
    GenericSchema
  21. implicit def eitherSchema[RA, RB, A, B](implicit evA: Schema[RA, A], evB: Schema[RB, B]): Schema[RA with RB, Either[A, B]]
    Definition Classes
    GenericSchema
  22. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  24. def field[V](name: String, description: Option[String] = None, directives: List[Directive] = List.empty): PartiallyAppliedField[V]

    Manually defines a field from a name, a description, some directives and a resolver.

    Manually defines a field from a name, a description, some directives and a resolver. If the field is a function that should be called lazily, use fieldLazy instead. If the field takes arguments, use fieldWithArgs instead.

    Definition Classes
    GenericSchema
  25. def fieldLazy[V](name: String, description: Option[String] = None, directives: List[Directive] = List.empty): PartiallyAppliedFieldLazy[V]

    Manually defines a lazy field from a name, a description, some directives and a resolver.

    Manually defines a lazy field from a name, a description, some directives and a resolver.

    Definition Classes
    GenericSchema
  26. def fieldWithArgs[V, A](name: String, description: Option[String] = None, directives: List[Directive] = Nil): PartiallyAppliedFieldWithArgs[V, A]

    Manually defines a field with arguments from a name, a description, some directives and a resolver.

    Manually defines a field with arguments from a name, a description, some directives and a resolver.

    Definition Classes
    GenericSchema
  27. implicit val floatSchema: Schema[Any, Float]
    Definition Classes
    GenericSchema
  28. implicit def functionSchema[RA, RB, A, B](implicit arg1: ArgBuilder[A], ev1: Schema[RA, A], ev2: Schema[RB, B]): Schema[RB, (A) => B]
    Definition Classes
    GenericSchema
  29. implicit def functionUnitSchema[R0, A](implicit ev: Schema[R0, A]): Schema[R0, () => A]
    Definition Classes
    GenericSchema
  30. implicit def futureSchema[R0, A](implicit ev: Schema[R0, A]): Schema[R0, Future[A]]
    Definition Classes
    GenericSchema
  31. macro def gen[R0, T]: Typeclass[T]

    Returns an instance of Schema for the given type T.

    Returns an instance of Schema for the given type T. This method requires a Schema for all types nested inside T. It should be used only if T is a case class or a sealed trait.

    Definition Classes
    SchemaDerivation
  32. def genAll[R0, T](implicit derived: Derived[Schema[R0, T]]): Schema[R0, T]

    Returns an instance of Schema for the given type T.

    Returns an instance of Schema for the given type T. This method will automatically generate missing Schema for all types nested inside T that are case classes or sealed traits.

    Definition Classes
    AutoSchemaDerivation
  33. implicit macro def genMacro[T]: Derived[Typeclass[T]]
    Definition Classes
    AutoSchemaDerivation
  34. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  35. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  36. implicit def infallibleEffectSchema[R0, R1 >: R0, R2 >: R0, A](implicit ev: Schema[R2, A]): Schema[R0, URIO[R1, A]]
    Definition Classes
    GenericSchema
  37. implicit def infallibleQuerySchema[R0, R1 >: R0, R2 >: R0, A](implicit ev: Schema[R2, A]): Schema[R0, ZQuery[R1, Nothing, A]]
    Definition Classes
    GenericSchema
  38. implicit def infallibleStreamSchema[R1, R2 >: R1, A](implicit ev: Schema[R2, A]): Schema[R1, ZStream[R1, Nothing, A]]
    Definition Classes
    GenericSchema
  39. lazy val instantEpochSchema: Schema[Any, Instant]
    Definition Classes
    TemporalSchema
  40. implicit lazy val instantSchema: Schema[Any, Instant]
    Definition Classes
    TemporalSchema
  41. implicit val intSchema: Schema[Any, Int]
    Definition Classes
    GenericSchema
  42. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  43. def isScalarValueType[T](ctx: ReadOnlyCaseClass[Typeclass, T]): Boolean
    Definition Classes
    CommonSchemaDerivation
  44. def isValueType[T](ctx: ReadOnlyCaseClass[Typeclass, T]): Boolean
    Definition Classes
    CommonSchemaDerivation
  45. implicit def listSchema[R0, A](implicit ev: Schema[R0, A]): Schema[R0, List[A]]
    Definition Classes
    GenericSchema
  46. val localDateEpochSchema: Schema[Any, LocalDate]
    Definition Classes
    TemporalSchema
  47. implicit lazy val localDateSchema: Schema[Any, LocalDate]
    Definition Classes
    TemporalSchema
  48. def localDateSchemaWithFormatter(formatter: DateTimeFormatter): Schema[Any, LocalDate]
    Definition Classes
    TemporalSchema
  49. val localDateTimeEpochSchema: Schema[Any, LocalDateTime]
    Definition Classes
    TemporalSchema
  50. implicit lazy val localDateTimeSchema: Schema[Any, LocalDateTime]
    Definition Classes
    TemporalSchema
  51. def localDateTimeSchemaWithFormatter(formatter: DateTimeFormatter): Schema[Any, LocalDateTime]
    Definition Classes
    TemporalSchema
  52. implicit lazy val localTimeSchema: Schema[Any, LocalTime]
    Definition Classes
    TemporalSchema
  53. def localTimeSchemaWithFormatter(formatter: DateTimeFormatter): Schema[Any, LocalTime]
    Definition Classes
    TemporalSchema
  54. implicit val longSchema: Schema[Any, Long]
    Definition Classes
    GenericSchema
  55. implicit def mapSchema[RA, RB, A, B](implicit evA: Schema[RA, A], evB: Schema[RB, B]): Schema[RA with RB, Map[A, B]]
    Definition Classes
    GenericSchema
  56. implicit def metadataFunctionSchema[R0, A](implicit ev: Schema[R0, A]): Schema[R0, (Field) => A]
    Definition Classes
    GenericSchema
  57. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  58. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  59. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  60. def obj[R1, V](name: String, description: Option[String] = None, directives: List[Directive] = Nil)(fields: (FieldAttributes) => List[(__Field, (V) => Step[R1])]): Schema[R1, V]

    Creates a new hand-rolled schema.

    Creates a new hand-rolled schema. For normal usage use the derived schemas, this is primarily for schemas which can't be resolved by derivation.

    name

    The name of the type

    description

    An optional description of the type

    directives

    The directives to add to the type

    fields

    The fields to add to this object

    case class Group(id: String, users: UQuery[List[User]], parent: UQuery[Option[Group]], organization: UQuery[Organization])
    case class Organization(id: String, groups: UQuery[List[Group]])
    case class User(id: String, group: UQuery[Group])
    
    implicit val groupSchema: Schema[Any, Group] = obj("Group", Some("A group of users"))(implicit ft =>
      List(
        field("id")(_.id),
        field("users")(_.users),
        field("parent")(_.parent),
        field("organization")(_.organization)
      )
    )
    
    implicit val orgSchema: Schema[Any, Organization] = obj("Organization", Some("An organization of groups"))(implicit ft =>
      List(
        field("id")(_.id),
        field("groups")(_.groups)
      )
    )
    
    implicit val userSchema: Schema[Any, User] = obj("User", Some("A user of the service"))(implicit ft =>
      List(
        field("id")(_.id),
        field("group")(_.group)
      )
    )
    Definition Classes
    GenericSchema
  61. def objectSchema[R1, A](name: String, description: Option[String], fields: (Boolean, Boolean) => List[(__Field, (A) => Step[R1])], directives: List[Directive] = List.empty): Schema[R1, A]

    Creates an object schema for a type A

    Creates an object schema for a type A

    name

    name of the type

    description

    description of the type

    fields

    list of fields with a type description and a resolver for each field

    Definition Classes
    GenericSchema
  62. implicit lazy val offsetDateTimeSchema: Schema[Any, OffsetDateTime]
    Definition Classes
    TemporalSchema
  63. def offsetDateTimeSchemaWithFormatter(formatter: DateTimeFormatter): Schema[Any, OffsetDateTime]
    Definition Classes
    TemporalSchema
  64. implicit def optionSchema[R0, A](implicit ev: Schema[R0, A]): Schema[R0, Option[A]]
    Definition Classes
    GenericSchema
  65. implicit def querySchema[R0, R1 >: R0, R2 >: R0, E <: Throwable, A](implicit ev: Schema[R2, A]): Schema[R0, ZQuery[R1, E, A]]
    Definition Classes
    GenericSchema
  66. lazy val sampleDate: ZonedDateTime
    Definition Classes
    TemporalSchema
  67. def scalarSchema[A](name: String, description: Option[String], specifiedBy: Option[String], makeResponse: (A) => ResponseValue): Schema[Any, A]

    Creates a scalar schema for a type A

    Creates a scalar schema for a type A

    name

    name of the scalar type

    description

    description of the scalar type

    specifiedBy

    URL of the scalar specification

    makeResponse

    function from A to ResponseValue that defines how to resolve A

    Definition Classes
    GenericSchema
  68. implicit def seqSchema[R0, A](implicit ev: Schema[R0, A]): Schema[R0, Seq[A]]
    Definition Classes
    GenericSchema
  69. implicit def setSchema[R0, A](implicit ev: Schema[R0, A]): Schema[R0, Set[A]]
    Definition Classes
    GenericSchema
  70. implicit val shortSchema: Schema[Any, Short]
    Definition Classes
    GenericSchema
  71. implicit def streamSchema[R0, R1 >: R0, R2 >: R0, E <: Throwable, A](implicit ev: Schema[R2, A]): Schema[R0, ZStream[R1, E, A]]
    Definition Classes
    GenericSchema
  72. implicit val stringSchema: Schema[Any, String]
    Definition Classes
    GenericSchema
  73. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  74. def temporalSchema[A <: Temporal](name: String, description: Option[String] = None)(f: (A) => ResponseValue): Schema[Any, A]
    Definition Classes
    TemporalSchema
  75. def temporalSchemaWithFormatter[A <: Temporal](name: String, description: Option[String] = None)(formatter: DateTimeFormatter): Schema[Any, A]
    Definition Classes
    TemporalSchema
  76. def toString(): String
    Definition Classes
    AnyRef → Any
  77. implicit def tupleSchema[RA, RB, A, B](implicit evA: Schema[RA, A], evB: Schema[RB, B]): Schema[RA with RB, (A, B)]
    Definition Classes
    GenericSchema
  78. implicit val unitSchema: Schema[Any, Unit]
    Definition Classes
    GenericSchema
  79. implicit val uploadSchema: Schema[Any, Upload]
    Definition Classes
    GenericSchema
  80. implicit val uuidSchema: Schema[Any, UUID]
    Definition Classes
    GenericSchema
  81. implicit def vectorSchema[R0, A](implicit ev: Schema[R0, A]): Schema[R0, Vector[A]]
    Definition Classes
    GenericSchema
  82. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  83. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  84. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  85. implicit lazy val zonedDateTimeSchema: Schema[Any, ZonedDateTime]
    Definition Classes
    TemporalSchema
  86. def zonedDateTimeSchemaWithFormatter(formatter: DateTimeFormatter): Schema[Any, ZonedDateTime]
    Definition Classes
    TemporalSchema

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from AutoSchemaDerivation[R]

Inherited from LowPriorityDerivedSchema

Inherited from GenericSchema[R]

Inherited from schema.TemporalSchema

Inherited from SchemaDerivation[R]

Inherited from CommonSchemaDerivation[R]

Inherited from AnyRef

Inherited from Any

Ungrouped