Skip to content

Frontend API - How do I get the slugs of a categories, based on a Product? #225

Answered by logeshswell
leonkosterss asked this question in Help
Discussion options

You must be logged in to vote

@leonkosterss You can also try a single query as follows:

const productWithSubCategories = await swell.products.get('63a55af6ae83d900120c949a', {
  expand: ['categories.parent.parent']
});

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@leonkosterss
Comment options

@leonkosterss
Comment options

@logeshswell
Comment options

Answer selected by logeshswell
@leonkosterss
Comment options

@logeshswell
Comment options

@logeshswell
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
3 participants