We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f313377 commit b78bbe1Copy full SHA for b78bbe1
packages/hypergraph-react/src/internal/use-generate-create-ops.tsx
@@ -33,9 +33,9 @@ export function useGenerateCreateOps<const S extends Entity.AnyNoContext>(type:
33
}
34
35
for (const [key, relationId] of Object.entries(mappingEntry.relations || {})) {
36
- const toIds: { to: Id.Id }[] = [];
+ const toIds: { to: Id.Id; relationId: Id.Id }[] = [];
37
for (const entity of properties[key]) {
38
- toIds.push({ to: Id.Id(entity.id) });
+ toIds.push({ to: Id.Id(entity.id), relationId: Id.Id(entity._relation.id) });
39
40
grcProperties[relationId] = toIds;
41
0 commit comments