vuestorefront / storefront-api

Storefront GraphQL API Gateway. Modular architecture. ElasticSearch included. Works great with Magento1, Magento2, Spree, OpenCart, Pimcore and custom backends
https://storefrontapi.com
MIT License
8 stars 1 forks source link

Add `Product.breadcrumbs`and `Category.breadcrumbs` feature #7

Closed pkarw closed 4 years ago

pkarw commented 4 years ago

What is the motivation for adding / enhancing this feature?

Having breadcrumbs generated by the API instead of the frontend app is always a nice optimization. We should move the business logick from vue-storefront for that and create new function inside Product and Category resolvers:

The schema for breadcrumbs should be like:

breadcrumbs: [CategoryBinding]

The CategoryBinding is defined inside the Product type.

What are the acceptance criteria

gibkigonzo commented 4 years ago

closed by #71