Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
TommyHPettersen opened this issue Jan 9, 2024 · 0 comments
Labels
bug Something isn't working triage A new issue that needs triage

Comments

@TommyHPettersen
Copy link

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 TommyHPettersen added bug Something isn't working triage A new issue that needs triage labels Jan 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage A new issue that needs triage
Projects
None yet
Development

No branches or pull requests

1 participant