pub fn encode_edge_cursor(pk: i64) -> StringExpand description
Encode a BIGINT primary key value as a Relay edge cursor.
The cursor is base64(pk_string) where pk_string is the decimal
representation of the BIGINT. This is opaque to the client.
ยงExample
use fraiseql_core::runtime::relay::encode_edge_cursor;
let cursor = encode_edge_cursor(42);
assert_eq!(cursor, base64_of("42"));