Types
caliban.schema.Types
object Types
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Types.type
Members list
Value members
Concrete methods
Returns a map of all the types nested within the given root type.
Returns a map of all the types nested within the given root type.
Attributes
Creates a new scalar type with the given name.
Creates a new scalar type with the given name.
Attributes
Tries to find a common widened type among a list of fields.
Tries to find a common widened type among a list of fields.
Value parameters
- l
-
a list of fields to unify
Attributes
- Returns
-
the unified type if one could be found
Tries to unify two types by widening them to a common supertype.
Tries to unify two types by widening them to a common supertype.
Value parameters
- t1
-
type second type to unify
- t2
-
the first type to unify
Attributes
- Returns
-
the unified type if one could be found
- Example
-
unify(string, makeNonNull(string)) // => Some(__Type(SCALAR, Some("String")))
In this article