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

fix(api): Add missing totalCount field to pageInfo in allCollections query #1173

Merged
merged 1 commit into from
Mar 16, 2022

Conversation

victorhmp
Copy link
Member

What's the purpose of this pull request?

The allCollections query always fails if the user asks for the pageInfo.totalCount field, that is because the resolver for that query would never return that field.

How it works?

Now the resolver will return the number of valid collections in the store when a user asks for pageInfo.totalCount.

How to test it?

I used the local server to test it (spoilers 🤫 ).

base.store Deploy Preview

References

@victorhmp victorhmp self-assigned this Mar 16, 2022
@victorhmp victorhmp requested a review from a team as a code owner March 16, 2022 13:36
@victorhmp victorhmp changed the title Add missing totalCount field to pageInfo in allCollections query fix: Add missing totalCount field to pageInfo in allCollections query Mar 16, 2022
@victorhmp victorhmp changed the title fix: Add missing totalCount field to pageInfo in allCollections query fix(api) Add missing totalCount field to pageInfo in allCollections query Mar 16, 2022
@victorhmp victorhmp changed the title fix(api) Add missing totalCount field to pageInfo in allCollections query fix(api): Add missing totalCount field to pageInfo in allCollections query Mar 16, 2022
@codesandbox-ci
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 40b4218:

Sandbox Source
Store UI Typescript Configuration

Copy link
Contributor

@igorbrasileiro igorbrasileiro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@victorhmp victorhmp merged commit 49aa25b into master Mar 16, 2022
@victorhmp victorhmp deleted the fix/missing-totalCount-on-pageInfo branch March 16, 2022 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants