pub fn encode_uuid_cursor(uuid: &str) -> StringExpand description
Encode a UUID string as a Relay edge cursor.
The cursor is base64(uuid_string). Base64 is encoding, not encryption —
a client that decodes the cursor will see the raw UUID. The Relay spec
requires cursors to be treated as opaque by convention, but provides no
cryptographic guarantee.
§Example
use fraiseql_core::runtime::relay::{decode_uuid_cursor, encode_uuid_cursor};
let uuid = "550e8400-e29b-41d4-a716-446655440000";
let cursor = encode_uuid_cursor(uuid);
assert_eq!(decode_uuid_cursor(&cursor), Some(uuid.to_string()));