Headless Server Developer Manual / Version 2104
Table Of Contents
All eCommerce functionality of the Headless Server is bundled within the Blueprint module headless-server-ec-augmentation
.
It contains GraphQL schema extension files, Java code and Spring configuration to implement this schema extension.
No Commerce Data
The eCommerce extension does not provide access to pure eCommerce related data like catalogs, categories and products. Instead the Headless Server provides augmentation data for categories, products, external commerce pages, product lists and navigation. Pure eCommerce data should be retrieved from the eCommerce system itself. In order to use the Headless Server in ecommerce projects with GraphQL, projects should use a schema gateway to combine both schemas (CoreMedia Headless Server and commerce system) to one combined graph. It is also possible to let a client talk to both backends in parallel, depending on the degree of integration needed.
The GraphQL schema extension contains commerce specific types and support for product and category augmentations.
The schema extension uses the GraphQL extension mechanism to add a new field commerce
of type
CommerceRoot
to the query root object. Using this new root field, it is possible to query eCommerce specific data.