@@ -25,7 +25,7 @@ import { createRelation } from './create-relation.js';
25
25
* ],
26
26
* relations: {
27
27
* [relationPropertyId]: {
28
- * to : 'id of the entity',
28
+ * toEntity : 'id of the entity',
29
29
* id: 'id of the relation', // optional
30
30
* toSpace: 'id of the to space', // optional
31
31
* fromSpace: 'id of the from space', // optional
@@ -40,13 +40,14 @@ import { createRelation } from './create-relation.js';
40
40
* entityValues: [ // optional values for the relation entity
41
41
* { property: propertyId, value: 'value of the property' },
42
42
* ],
43
- * entityRelations: {
43
+ * entityRelations: { // same structure as `relations` and can be nested
44
44
* [relationPropertyId]: {
45
- * to : 'id of the entity',
45
+ * toEntity : 'id of the entity',
46
46
* id: 'id of the relation', // optional
47
47
* position: positionString, // optional
48
48
* },
49
49
* },
50
+ * entityTypes: [typeEntityId1, typeEntityId2], // optional
50
51
* },
51
52
* },
52
53
* });
@@ -212,7 +213,11 @@ export const createEntity = ({
212
213
toEntity : relation . toEntity ,
213
214
type : Id ( typeId ) ,
214
215
position : relation . position ,
216
+ fromSpace : relation . fromSpace ,
215
217
toSpace : relation . toSpace ,
218
+ fromVersion : relation . fromVersion ,
219
+ toVersion : relation . toVersion ,
220
+ verified : relation . verified ,
216
221
entityId : relationEntityId ,
217
222
entityName : relation . entityName ,
218
223
entityDescription : relation . entityDescription ,
0 commit comments