-
Notifications
You must be signed in to change notification settings - Fork 10
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
Feat/get paginated organizations #172
base: master
Are you sure you want to change the base?
Feat/get paginated organizations #172
Conversation
Hi! I'm VTEX IO CI/CD Bot and I'll be helping you to publish your app! 🤖 Please select which version do you want to release:
And then you just need to merge your PR when you are ready! There is no need to create a release commit/tag.
|
Beep boop 🤖 I noticed you didn't make any changes at the
In order to keep track, I'll create an issue if you decide now is not a good time
|
What problem is this solving?
This update optimizes the retrieval of organizations and cost center information by implementing paginated queries instead of fetching all data at once. It prevents timeouts and improves performance when users are associated with a large number of organizations.
ClickUp: https://app.clickup.com/t/868amdqqw
How should this be manually tested?
costId
is returned if a cost center is available.inactive
is retrieved correctly.Screenshots or example usage:
{ getOrganizationsPaginatedByEmail(email: "", page: 1, pageSize: 25) { data { id clId costId orgId } pagination { page pageSize total } } }
b2b-organizations-graphql PR: vtex-apps/b2b-organizations-graphql#189