Skip to content

Can't filter on boolean key on queryCollection #3047

@LiamEderzeel

Description

@LiamEderzeel

Environment


  • Operating System: Linux
  • Node Version: v20.17.0
  • Nuxt Version: 3.15.3
  • CLI Version: 3.20.0
  • Nitro Version: 2.10.4
  • Package Manager: [email protected]
  • Builder: -
  • User Config: modules, devtools, future, compatibilityDate
  • Runtime Modules: @nuxt/[email protected]
  • Build Modules: -

Version

v3

Reproduction

https://github.com/LiamEderzeel/nuxt-content-repro

Description

Ran into an issue where I can't query keys with type boolean on a schema. See the reproduction.

Found a work around where using 0 or 1 does work. This is also included in the reproduction.

Let me know if a can do anything to help.

Additional context

No response

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions