-
-
Notifications
You must be signed in to change notification settings - Fork 94
Closed
Milestone
Description
ArcadeDB Version: v23.1.1 (build aa687e4/1673895089679/main)
JDK Version: openjdk 11.0.17 2022-10-18
OS: MacOS 12.6
am trying to insert a document type into a embedded property. While the operation completes, the type of the inserted document is MAP and not EMBEDDED.
Expected behavior
EMBEDDED
Actual behavior
MAP
Steps to reproduce
CREATE DOCUMENT TYPE pair;
CREATE PROPERTY pair.head STRING;
CREATE PROPERTY pair.tail EMBEDDED;
INSERT INTO pair CONTENT { 'head': 'hi', 'tail': { '@type': 'pair', 'head': 'ho', 'tail': null } };
INSERT INTO pair (head, tail) VALUES ('head', { '@type': 'pair', 'head': 'ho', 'tail': null });
SELECT tail.type() FROM pair;
There is an SQL-Insert example which suggests this should work: https://docs.arcadedb.com/#SQL-Insert
Reactions are currently unavailable