GlobalID

Global ID for relay types.

Different from strawberry.ID , this ID wraps the original object ID in a string that contains both its GraphQL type name and the ID itself, and encodes it to a base64_ string.

This object contains helpers to work with that, including method to retrieve the python object type or even the encoded node itself.

Attributes: type_name: The type name part of the id node_id: The node id part of the id

.. _base64: https://en.wikipedia.org/wiki/Base64

Constructor:

Signature:

def __init__(self, type_name: str, node_id: str) -> None:
...

Parameters:

  1. type_name:

    Type
    str
  2. node_id:

    Type
    str

Methods:

Attributes:

  1. type_name:

    Type
    str
  2. node_id:

    Type
    str