Skip to content

Querying JSON array is not possible #1844

Open
@stronglify13

Description

@stronglify13

Environment

Nuxt project info:


  • Operating System: Linux
  • Node Version: v16.15.1
  • Nuxt Version: 3.0.0
  • Nitro Version: 1.0.0
  • Package Manager: [email protected]
  • Builder: vite
  • User Config: modules
  • Runtime Modules: @nuxt/[email protected]
  • Build Modules: -

Reproduction

use queryContent on a json file that contains an array at the root and try to do a where on the properties of the objects

Describe the bug

My problem is equal that this:

  1. #1814
  2. #800
  3. #897
  4. #480

This feature was implement in Nuxt Content V1 but in V2 not working

Additional context

In #486 was fixed

Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions