Skip to content

Non-string and non-numeric params in query #373

@Mangatt

Description

@Mangatt

Hi guys,
when I try filter results of query with any non-numeric or non-string value (null, undefined or new Date()) I've got error. Are there any plans for adding support for these, so following would work?

  • hook.params.query.date = null
  • hook.params.query.date = undefined
  • hook.params.query.date = new Date()

After some research I've found that advanced criteria work just fine:

  • hook.params.query.date = {$in: [null]}
  • hook.params.query.date = {$in: [new Date()]}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions