JayData.org

Querying 1:N relations

Author: Szabolcs Czinege May 31st, 2012

, ,


As of v1.0.4, JayData supports embedded queries on WebSQL/SQLite provider. This allows you to form more complex selections, still only using clean JSLQ syntax. As additional advantage, you can avoid the need to handle additional asynchrony in your code, as well as loading data to the client you won’t need directly.

The following example shows you how to use this feature (the code runs in our NewsReaderContext).

As result, you’ll get the users who are also authors of at least one article.


, ,