refactor: use GraphQL string scalar for KSUID transit
Marshal and unmarshal both use the base62 KSUID string, replacing the legacy JSON object wrapper and aligning gqlgen scalar behavior. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
// # Identifier types
|
||||
//
|
||||
// [StringKSUID] and [BinaryKSUID] wrap segmentio/ksuid with storage-specific
|
||||
// SQL encoding. Both share identical GraphQL string transit. Choose StringKSUID
|
||||
// SQL encoding. Both share identical GraphQL string scalar transit. Choose StringKSUID
|
||||
// for text columns (VARCHAR, TEXT); choose BinaryKSUID for binary columns
|
||||
// (BINARY(20), BYTEA).
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user