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
Utopia\Database\Database->count()
In several places in Appwrite, we have to do:
$filterQueries = Query::groupByType($queries)['filters']; $response->dynamic(new Document([ 'users' => $dbForProject->find('users', $queries), 'total' => $dbForProject->count('users', $filterQueries, APP_LIMIT_COUNT), ]), Response::MODEL_USER_LIST);
It would be much cleaner to have Utopia\Database\Database->count() grab only the filters so that the code can be simplified to:
- $filterQueries = Query::groupByType($queries)['filters']; $response->dynamic(new Document([ 'users' => $dbForProject->find('users', $queries), - 'total' => $dbForProject->count('users', $filterQueries, APP_LIMIT_COUNT), + 'total' => $dbForProject->count('users', $queries, APP_LIMIT_COUNT), ]), Response::MODEL_USER_LIST);
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
In several places in Appwrite, we have to do:
It would be much cleaner to have
Utopia\Database\Database->count()
grab only the filters so that the code can be simplified to:The text was updated successfully, but these errors were encountered: