Support checked keyed relationships across portable operations and queries
This commit is contained in:
@@ -33,6 +33,13 @@ export function validateInitialization(workspace: WorkspaceRevision): Capability
|
||||
fail(ownerKey(owner), `Initialization input ${field.input} must name an edge projection on the newborn atom`);
|
||||
return;
|
||||
}
|
||||
if (target.keyType) {
|
||||
fail(
|
||||
ownerKey(owner),
|
||||
"Initialize a keyed relationship through its keyed projection; inverse seeds cannot supply a map key",
|
||||
);
|
||||
return;
|
||||
}
|
||||
if (endpoint.cardinality === "many" || endpoint.cardinality === "many-unique") {
|
||||
const fields: Record<string, ValueType> = {
|
||||
key: { kind: "scalar", name: "string" },
|
||||
|
||||
Reference in New Issue
Block a user