In the WIX SQL Package ‘@velo/wix-data-sql-backend’ there is an example in the README.md file using JOIN
sql(‘SELECT Teams.city, Teams.name, Players.team, Players.name FROM Teams LEFT JOIN Players ON Teams.name = Players.team’)
I could not get an example working even with a very simple collection structure.
In fact I could not get this to work without a JOIN as it fails when you reference a field using the syntax [ < collection1 > . < column > ]
Example - this does not work:
sql( ‘SELECT Teams.city FROM Teams’ );
This gives the error:
Syntax error near “SELECT”. Reason: column does not exist Teams.city
And yet this works:
sql( ‘SELECT city FROM Teams’ );
Is there anyone out there using this package ?