joist-core 2.4.0-next.6 → 2.4.0-next.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -300,7 +300,7 @@ var EntityManager = class EntityManager {
300
300
  this.#assertFindAllowed("query");
301
301
  const em = this;
302
302
  return (async function query() {
303
- const plan = require_queries_sql_query.parseUserQuery(q);
303
+ const plan = require_queries_sql_query.parseRootQuery(q);
304
304
  if (options?.populate && plan.output.kind !== "entity") require_utils.fail("em.query populate requires an entity selection");
305
305
  const { rows } = await em.driver.executeQuery(em, plan.sql, plan.bindings);
306
306
  const result = plan.decodeRows(em, rows);