0.0.5 • Published 8 months ago

drizzle-orm-fqp v0.0.5

Weekly downloads
-
License
MIT
Repository
-
Last release
8 months ago

Drizzle Filter Query Parser

String Parser for Drizzle Filter.

API

import { parseQueryString } from "drizzle-fqp"
import { user } from "./schema.ts"

const { value, lexErrors, parseErrors } = parseQueryString("eq(id, 1)", user)

const result = await db.query.user.findMany({
  where: value
})

Important

Currently only eq and and operators are allowed.

0.0.5

8 months ago