Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

We should able to return complete payload object from the hooks #13482

Closed
kadiresen opened this issue May 23, 2022 · 0 comments
Closed

We should able to return complete payload object from the hooks #13482

kadiresen opened this issue May 23, 2022 · 0 comments

Comments

@kadiresen
Copy link
Sponsor

Describe the Bug

If we modify the payload inside any filter hook, wrong meta values placing over response. For example, current payload is array of 3 items but I've changed it with array as 1 item. Admin app displays data as (and also API's):

image

So, pagination operations are not working properly because of that.

To Reproduce

Create a items.read filter hook and modify payload object with different number of records.

Errors Shown

No response

What version of Directus are you using?

9.11.0

What version of Node.js are you using?

16.13.2

What database are you using?

MySQL

What browser are you using?

Chrome

How are you deploying Directus?

running locally

@directus directus locked and limited conversation to collaborators May 23, 2022
@rijkvanzanten rijkvanzanten converted this issue into discussion #13491 May 23, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant