It's a matter of taste. We decided to do a "looks like SQL + GraphQL" style because that's what most people are familiar when they think about a query language.
That said, the functional variant is a likely way to represent EdgeQL in programming languages.
Keep in mind that EdgeQL is a query language that can be used from any programming language (either over the official libraries, or over HTTP). Functional JS-inspired dialects aren't appealing to everybody.
Your query returns 5 rows total. The EdgeDB query returns all movies that Zendaya is in [1] and, along with each movie, the first 5 credited actors.
Also, it looks like your version also does implicit joins (like EdgeDB), but I'm not sure how they would work in that style. [1] Or maybe only movies where Zendaya is in the first 5 credited actors; I'm not sure.
Comments (323) 88 threads
Show all comments
Showing thread 9 of 88
That said, the functional variant is a likely way to represent EdgeQL in programming languages.
Also, it looks like your version also does implicit joins (like EdgeDB), but I'm not sure how they would work in that style.
[1] Or maybe only movies where Zendaya is in the first 5 credited actors; I'm not sure.