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 Prismic Integration #11

Open pkarw opened 4 years ago

pkarw commented 4 years ago

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")
 }
}