drizzle-orm-fqp
v0.0.5
Published
String Parser for [Drizzle Filter](https://orm.drizzle.team/docs/operators).
Downloads
649
Readme
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
})