-
Notifications
You must be signed in to change notification settings - Fork 46
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
Can't Filters Numeric Values And Boolean Values #68
Comments
Thank you to the author and contributors for creating this useful package! Purity has significantly enhanced my workflow, and I deeply appreciate the effort and dedication that has gone into its development. However, I have encountered an issue where I can't filter numeric values and Boolean values. |
Hi @AhnabShahin . |
@AhnabShahin keep in mind all of our tests are running in SQLite and MySQL databases and Eloquent if you have any errors it is related to MongoDB and Moloquent. Do have mismatched results? |
@abbasudo It's not an error! I'm just getting mismatched results when using MongoDB with the help of the "laravel-mongodb" package, which is the official MongoDB package for Laravel. If this "Purity" package doesn't support MongoDB, I'm willing to fork it to make it workable and suitable for myself. |
@AhnabShahin that's great. Please inform me of any updates on your fork. |
Filter example :
?filters[gpa][$eq]=3.11
?filters[gpa][$eq]=4
?filters[gpa][$eq]=False
?filters[is_default][$eq]=true
Database Using : MongoDB using https://github.com/mongodb/laravel-mongodb
Problem Details:
The URL parameters are being converted into strings, but the corresponding values in my database are integers or floats. As a result, there's a mismatch and I'm not getting any matching results.
The text was updated successfully, but these errors were encountered: