EdgeQL Tutorial

Insert

Subtopics

Sometimes it's necessary to insert several objects at the same time because they make up a single nested structure. Since each INSERT can be treated as an expression, they can easily be organized into any arbitrary nested structure. Consider, for example, a feature that would make a post from some anonymous placeholder user:

Input
Run
Output
Press the 'Run' button to evaluate the input

Now if we make another post, a new placeholder user will be generated (as you can see by checking the id):

Input
Run
Output
Press the 'Run' button to evaluate the input