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

Limit include data #672

Open
yalsicor opened this issue Apr 3, 2022 · 1 comment
Open

Limit include data #672

yalsicor opened this issue Apr 3, 2022 · 1 comment
Assignees
Projects

Comments

@yalsicor
Copy link
Contributor

yalsicor commented Apr 3, 2022

Description:
When we are including relations in Apiato, unsually we include the data from a relationship. That data can become quite large, when there are a lot of related entities. One can add a limited (eg. via config) relation to the model an include that relation, but this makes it quite tedious to add that for all relations. It would be also nice to add a limit=x to an include in the request.

Expected Behavior:
Maybe we can add some helper functionality to make this more streamlined?

Additional Context:

Versions:
Apiato Version: master branch (v11)
PHP Version: 8.1.0

Steps To Reproduce:
include a relation

@Mohammad-Alavi Mohammad-Alavi added this to To do in v11 via automation Apr 3, 2022
@Mohammad-Alavi
Copy link
Member

Note to anyone who is interested to implement this:

In here search for Include Parameters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
v11
To do
Development

No branches or pull requests

2 participants