@pylonsync/create-pylon 0.22.73 → 0.22.74

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/skill/SKILL.md +1 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pylonsync/create-pylon",
3
- "version": "0.22.73",
3
+ "version": "0.22.74",
4
4
  "description": "Scaffold a new Pylon app — realtime backend + web/mobile/expo frontends in one command. Run via `npm create @pylonsync/pylon@latest`.",
5
5
  "publishConfig": {
6
6
  "access": "public"
package/skill/SKILL.md CHANGED
@@ -558,6 +558,7 @@ ctx.requireMember(orgId, { role }) // assert org membership/role — throws
558
558
  ctx.db.get(entity, id) // => row | null
559
559
  ctx.db.list(entity) // => row[]
560
560
  ctx.db.query(entity, filter) // => row[] filter: { field: value, $gt, $lt, $in, $like, $order, $limit }
561
+ ctx.db.count(entity, filter?) // => number counted in SQL, no rows loaded, no 10,000 cap ($order/$limit ignored). Use this, never `(await query(...)).length`. Not on serverData. (≥0.22.74)
561
562
  ctx.db.lookup(entity, field, value) // => row | null
562
563
  ctx.db.search(entity, spec) // => { hits, facetCounts, total } (needs `.search({...})` on the entity)
563
564
  ctx.db.paginate(entity, { cursor, numItems })