strawberry.relay.to_base64
Encode the type name and node id to a base64 string.
Returns:
A GlobalID, which is a string resulting from base64 encoding
Signature:
Parameters:
-
type_:
The GraphQL type, type definition or type name.
- Type
-
str | type | StrawberryObjectDefinition
-
node_id:
The node id itself
- Type
-
Any