next-drupal
next-drupal copied to clipboard
Filters with getResource are not applied on resource or its included resources
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:
- Use
getResourcewith an included resource. - Apply some filter in
params. - Result will give resource without applying filters.