Skip to content

RETURNING paratmeter for INSERT #1560

Answered by elprans
Fogapod asked this question in Q&A
Discussion options

You must be logged in to vote

INSERT in EdgeDB is already "returning" (like every other expression), you don't need any special clauses for it, so:

WITH 
    Inserted := (INSERT ... )
SELECT
    Inserted { ... }

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Fogapod
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants