vuestorefront/storefront-api

Add Prismic Integration

pkarw opened this issue · 0 comments

pkarw commented

What is the motivation for adding / enhancing this feature?

The architecture is fully modular which means the default modules are one of the options.

I can imagine how cool it was if there were a direct integration with Prismic so users can query the GraphQL resolver by just calling a Prismic.getDocuments() or other variations.

This kind of integration user can get all the required data - lets' say for Category page within single query:

{
  category(url_path:"woman-20") {
   products { 
     items { name, price }
   },
   prismicDocuments(identifier:"for-category-20")
 }
}