GlobalId

object GlobalId
Companion:
class
trait Product
trait Mirror
class Object
trait Matchable
class Any

Type members

Classlikes

case object IdViolation extends ValueCoercionViolation

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Inherited from:
Mirror

Value members

Concrete methods

def fromGlobalId(globalId: String): Option[GlobalId]

Takes the "global ID" created by toGlobalID, and returns the type name and ID used to create it.

Takes the "global ID" created by toGlobalID, and returns the type name and ID used to create it.

def toGlobalId(globalId: GlobalId): String
def toGlobalId(typeName: String, id: String): String

Takes a type name and an ID specific to that type name, and returns a "global ID" that is unique among all types.

Takes a type name and an ID specific to that type name, and returns a "global ID" that is unique among all types.

def unapply(globalId: String): Option[GlobalId]

Implicits

Implicits

implicit val GlobalIdTypeAlias: ScalarAlias[GlobalId, String]

Creates a type alias to support using GlobalIDs across Relay applications

Creates a type alias to support using GlobalIDs across Relay applications