globalIDStringFor

abstract fun <T : NodeObject?> globalIDStringFor(type: Type<T>, internalID: String): String(source)

Creates a serialized GlobalID string for the given Node type and internal ID.

Use this instead of globalIDFor when you need a serialized GlobalID string (e.g., to set the id field on a Node type builder).

Example: ctx.globalIDStringFor(Type.ofClass(NodeObj.class), internalId)

Return

the serialized GlobalID string

Parameters

type

the GraphQL Node type

internalID

the internal ID string

<T>

the Node GRT type