New issue
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
Default Filters for FindMany #5
Comments
Hello @ibrahimyaacob92 I have heard of Hasura, but never really used it before. So, could you provide an example of what you want to achieve? |
hi @omar-dulaimi, let me share you this, in Hasura, its building the graphql API automagically and it includes all the necessary filters that you can think of. example below:
i can actually filter all the users based on any field and any method (equal, greater than, less than, like..) its going to be a very big thing if this library able to pull this off. let me know if you need more detail, i'm very much happy to help |
Hey @ibrahimyaacob92 If I understood you correctly, I think what you want is already built and supported. For example: .query("findManyCompany", {
input: CompanyFindManySchema,
async resolve({ ctx, input }) {
const findManyCompany = await ctx.prisma.company.findMany(input);
return findManyCompany;
},
}) The
If you go inside Unless I got you wrong, please explain to me again :) |
Closing for cleanup purposes. Feel free to comment to re-open. |
Problem
Filters for list (find many) are not appear out of the box
Suggested solution
Have default optional filters like
Hasura
where we can filters based on other fields (columns) and it should be as powerful like having equal, greater than, lesser than and like.The text was updated successfully, but these errors were encountered: