commercetools / commercetools/nodejs

Fetched categories length different from commerce tools dasboard

Open
#1,656 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
77
Forks
70
PR merge metrics
No merged PRs in 30d

Description

Trying to get all existing categories with the following method:

```
async getAllCategories() {
try {
const response = await this.apiRoot
.withProjectKey({ projectKey: this.projectKey })
.categories()
.get()
.execute()
return response.body.results
} catch (e) {
console.log(e)
throw e
}
}

```

I'm getting 19 categories.
But in the admin dashboard i have 40 categories

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.