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

Integrate indicator of how many results displayed of total results #2

Open
maggie44 opened this issue Feb 18, 2021 · 1 comment
Open
Labels
enhancement New feature or request

Comments

@maggie44
Copy link
Contributor

maggie44 commented Feb 18, 2021

Beginnings of this code is in there already, but GraphQL isn't playing nicely with the count endpoint in Strapi if you use variables.

@maggie44 maggie44 added the enhancement New feature or request label Feb 18, 2021
@maggie44
Copy link
Contributor Author

maggie44 commented Feb 21, 2021

Query logged with Strapi: https://forum.strapi.io/t/counting-with-graphql-when-using-variables/2932

Is looking like best approach will be to check if the formats, tags and keywords (etc.) fields are empty, and if they are then not to pass them as a 'where' query to GraphQL. Would require putting the entire 'where' call into a variable constructed based on which fields are populated, then passing that variable through and adding it to the query.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant