next-drupal icon indicating copy to clipboard operation
next-drupal copied to clipboard

Filters with getResource are not applied on resource or its included resources

Open TommyHPettersen opened this issue 2 years ago • 0 comments

Package containing the bug

next-drupal (NPM package)

Describe the bug

getResource does not apply filters to requested resource or its included resources.

Expected behavior

Expected getResource to apply filters on the resource and/or its included resources.

Example would be:

client.getResource(
  "node--...",
  id,
  {
    params: {
      include: "field_children",
      filter: {
        status: 1,
        field_children: {
          status: 1
        }
      }
    }
  }
); 

Steps to reproduce:

  1. Use getResource with an included resource.
  2. Apply some filter in params.
  3. Result will give resource without applying filters.

TommyHPettersen avatar Jan 09 '24 11:01 TommyHPettersen