Skip to content

Can't Filters Numeric Values And Boolean Values #68

@AhnabShahin

Description

@AhnabShahin

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.

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions