In SQL, I can write a query that already includes the data such as the following:
SELECT 1
Or, with a slightly less trivial example:
WITH users as (
SELECT 1 id, "tom" name UNION ALL
SELECT 2 id, "sandra" name
) SELECT * FROM users
Is there a similar way to do this in GQL without having to have already-defined tables? If so, what would be a bare-bones example?
GRAPH (...inline table... ?)
MATCH
(from_person:Person {name: "Dana"})-[:Owns]->
RETURN
from_person.name