We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It seems like models, that have a field with an Array type, cannot be queried.
A simple model, where roles field is an array of numbers:
const db = factory({ user: { id: primaryKey(() => faker.datatype.uuid()), name: () => faker.name.fullName(), age: () => faker.datatype.number(), roles: () => faker.helpers.arrayElements([1, 2, 3, 4]) } });
is ignored by findMany query:
const usersRoleSubset = db.user.findMany({ where: { roles: { // no matter, which query (notIn, between) to use arrays are ignored in: [2, 3] } } });
A reproducable example can be found here: https://codesandbox.io/s/flamboyant-shadow-rmb5gk?file=/src/index.js
The text was updated successfully, but these errors were encountered:
No branches or pull requests
It seems like models, that have a field with an Array type, cannot be queried.
A simple model, where roles field is an array of numbers:
is ignored by findMany query:
A reproducable example can be found here: https://codesandbox.io/s/flamboyant-shadow-rmb5gk?file=/src/index.js
The text was updated successfully, but these errors were encountered: