GenericSchema
Attributes
- Graph
-
- Supertypes
-
trait TemporalSchematrait SchemaDerivation[R]trait CommonSchemaDerivationclass Objecttrait Matchableclass AnyShow all
- Known subtypes
Members list
Type members
Inherited classlikes
Attributes
- Inherited from:
- SchemaDerivation
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Inherited from:
- CommonSchemaDerivation
- Supertypes
Attributes
- Inherited from:
- SchemaDerivation
- Supertypes
Attributes
- Inherited from:
- SchemaDerivation
- Supertypes
-
class Objecttrait Matchableclass Any
Inherited and Abstract classlikes
Attributes
- Inherited from:
- SchemaDerivation
- Supertypes
Value members
Concrete methods
Creates an enum schema for a type A
Creates an enum schema for a type A
Value parameters
- description
-
description of the scalar type
- directives
-
the directives to add to the type
- name
-
name of the scalar type
- repr
-
function that defines how to convert A into a string. WARNING: The resulting string must be contained in the values list
- values
-
list of possible enum values
Attributes
- See also
-
enumValue convenience method for creating enum values required by this method
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.
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.
Attributes
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.
Attributes
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.
Attributes
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.
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.
Value parameters
- 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) ) )
- name
-
The name of the type
Attributes
- See also
-
customObj
for an improved variant using context functions (Scala 3 only)
Creates an object schema for a type A
Creates an object schema for a type A
Value parameters
- description
-
description of the type
- fields
-
list of fields with a type description and a resolver for each field
- name
-
name of the type
Attributes
Creates a scalar schema for a type A
Creates a scalar schema for a type A
Value parameters
- description
-
description of the scalar type
- directives
-
the directives to add to the type
- makeResponse
-
function from
A
to ResponseValue that defines how to resolveA
- name
-
name of the scalar type
- specifiedBy
-
URL of the scalar specification
Attributes
Inherited methods
Attributes
- Inherited from:
- SchemaDerivation
Returns a configuration object that can be used to customize the derivation behavior.
Returns a configuration object that can be used to customize the derivation behavior.
Override this method to customize the configuration.
Attributes
- Inherited from:
- CommonSchemaDerivation
Attributes
- Inherited from:
- CommonSchemaDerivation
Attributes
- Inherited from:
- SchemaDerivation
Attributes
- Inherited from:
- SchemaDerivation
Attributes
- Inherited from:
- TemporalSchema
Attributes
- Inherited from:
- TemporalSchema
Attributes
- Inherited from:
- TemporalSchema
Attributes
- Inherited from:
- TemporalSchema
Attributes
- Inherited from:
- CommonSchemaDerivation
Attributes
- Inherited from:
- CommonSchemaDerivation
Attributes
- Inherited from:
- TemporalSchema
Attributes
- Inherited from:
- TemporalSchema
Attributes
- Inherited from:
- SchemaDerivation
Attributes
- Inherited from:
- CommonSchemaDerivation
Attributes
- Inherited from:
- TemporalSchema
Inherited fields
Attributes
- Inherited from:
- SchemaDerivation
Attributes
- Inherited from:
- TemporalSchema
Attributes
- Inherited from:
- TemporalSchema
Attributes
- Inherited from:
- TemporalSchema
Attributes
- Inherited from:
- TemporalSchema
Implicits
Implicits
Inherited implicits
Attributes
- Inherited from:
- TemporalSchema
Attributes
- Inherited from:
- TemporalSchema
Attributes
- Inherited from:
- TemporalSchema
Attributes
- Inherited from:
- TemporalSchema
Attributes
- Inherited from:
- TemporalSchema
Attributes
- Inherited from:
- TemporalSchema