JSPM

convex-helpers

0.1.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 63460
  • Score
    100M100P100Q146140F
  • License MIT

A collection of useful code to complement the official convex package.

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (convex-helpers) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    convex-helpers

    A collection of useful code to complement the official packages.

    Row-level security

    See the Stack post on row-level security

    Use the RowLevelSecurity helper to define withQueryRLS and withMutationRLS wrappers to add row-level checks for a server-side function. Any access to db inside functions wrapped with these will check your access rules on read/insert/modify per-document.

    Relationship helpers

    See the Stack post on relationship helpers and the relationship schema structures post.

    Use the helpers in relationships.ts to traverse database relationships in queries more cleanly.