graphene
Installation#
API#
fromGlobalId#
Get the raw database ID from a global id.
toGlobalId#
Encode a model name and database id to a global id.
parseGlobalId#
Parse both the model name and the database id from the global id.
bumpGlobalId#
Increment the global id. Requires the parsed ID to be an integer.
bumpOrInitCursor#
Increment a cursor or initialize to arrayconnection:1 (YXJyYXljb25uZWN0aW9uOjE=).
mapNodes#
Return an array of nodes from a relay-style connection.
Optionally takes in a transform callback which will operate on each node,
useMapNodes#
Like mapNodes but returns a stable array (assuming connection and callback are stable).