Home > @vsf-enterprise/commercetools-api > getFacetCategoriesDefaultQuery
# getFacetCategoriesDefaultQuery variable
Default GraphQL query for the getFacetCategories
API endpoint
Signature:
getFacetCategoriesDefaultQuery = "\n fragment category on Category {\n id\n key\n slug(acceptLanguage: $acceptLanguage)\n name(acceptLanguage: $acceptLanguage)\n }\n \n query categories($where: String, $sort: [String!], $limit: Int, $offset: Int, $acceptLanguage: [Locale!]) {\n categories(where: $where, sort: $sort, limit: $limit, offset: $offset) {\n results {\n ...category\n metaDescription(acceptLanguage: $acceptLanguage)\n ancestors {\n ...category\n ancestors {\n ...category\n }\n }\n parent {\n id\n parent {\n id\n parent {\n id\n }\n }\n }\n }\n }\n }\n"