We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
is there a way to defind /cats?fields=field1,field2 etc? ats the movement even using some custom solution?
E.g. provide also somehow FindOneOptions options when calling
paginate(query, this.repository, config);
The text was updated successfully, but these errors were encountered:
Doesn't currently exist for repositories. You could use QueryBuilder as a workaround.
QueryBuilder
But..
Allowing query to pass fields onto FindOptions would probably be an easy and straightforward solution.
FindOptions
Helper config:
paginate(query, this.usersRepository, { sortableColumns: ['id', 'username', 'email', 'created'], select: ['id', 'username', 'email', 'firstName', 'lastName', 'created'] })
Select may acts as a whitelist for the query string here as well.
Query string:
/users?select=email,created
PK might be always selected.
Happy to accept PR :)
Sorry, something went wrong.
No branches or pull requests
is there a way to defind /cats?fields=field1,field2 etc? ats the movement even using some custom solution?
E.g. provide also somehow FindOneOptions options when calling
paginate(query, this.repository, config);
The text was updated successfully, but these errors were encountered: