v0.7.1
Features
- Adds
inandnotInnumber comparators (#150).
import { factory, primaryKey } from '@mswjs/data'
const data = factory({
user: {
id: primaryKey(String),
age: Number
}
})
data.user.findMany({
where: {
age: { in: [18, 24, 32] }
}
})Note that
in/notInact asArray.prototype.includesand do not represent a permitted range of numbers. Usebetween/notBetweento query by range.