mswjs / data

Data modeling and relation library for testing JavaScript applications.

Home Page:https://npm.im/@mswjs/data

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support a "Boolean" model property

kettanaito opened this issue · comments

const db = factory({
  post: {
    isDraft: Boolean
  }
})

db.post.findMany({
  which: { isDraft: { equals: false } }
})

Query string:

interface BooleanQuery {
  equals: boolean
  notEquals: boolean
}