Skip to main content
fastql.relay provides the Relay server conventions: a Node interface with global object identification, and generic Connection/Edge/PageInfo types with a cursor-slicing helper.
  • to_global_id / from_global_id encode and decode opaque Type:id cursors.
  • register_node(type_name, fetch) maps a type to its id-based resolver, which resolve_node uses to power the root node(id) field.
  • connection_from_list slices an in-memory list with first/after and last/before, returning a Connection with edges, pageInfo, and cursors.