Closed barmpis closed 3 years ago
Support for the nested object literals in inserts has been indefinitely postponed AFAIK. The way to do this is: first create the CRefer
, get its uuid, and then assign it to cref
(i.e. by reference).
that is impossible, containments cannot be created on their own (used to just do nothing but now throws exception)
edit: the exception is in mysql, in a document store i am unsure if it still does nothing (aka pretends the entity is inserted and gives its uuid but in the store nothing is there) or also throws an exception. This is regarding trying to create a new entity like CRefer on its own.
Ok, I will have a look.
Hi, I've looked our tests (where it works). Can you try the following:
First add an inverse on the child (CRefer
):
datatype -> Datatypes."Datatypes.cref"[1]
And then insert the CRefer
after inserting a Datatypes
(the parent), like so:
insert CRefer { r: 123, datatype: #...theuuid }
thank you, it works with inclusion of an inverse.
Describe the bug
Trying to add a containment reference in mysql results in the reference to not be added (remains null with the relevant entity never created)
Query
Model
Expected behavior
Expected a Datatypes entity to be created with a contained CRefer entity, the reference remains null instead.