Skip to content

Commit

Permalink
Add missing totalCount field to allCollections query (#1173)
Browse files Browse the repository at this point in the history
  • Loading branch information
victorhmp authored Mar 16, 2022
1 parent a43016e commit 49aa25b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/api/src/platforms/vtex/resolvers/query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ export const Query = {
endCursor: (
Math.min(first, validCollections.length - after) - 1
).toString(),
totalCount: validCollections.length,
},
edges: validCollections
.slice(after, after + first)
Expand Down

0 comments on commit 49aa25b

Please sign in to comment.