Download the PHP package oxid-academy/graphql-product-extension without Composer
On this page you can find all versions of the php package oxid-academy/graphql-product-extension. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download oxid-academy/graphql-product-extension
More information about oxid-academy/graphql-product-extension
Files in oxid-academy/graphql-product-extension
Package graphql-product-extension
Short Description Description of the package.
License GPL-3.0-or-later
Homepage https://www.oxid-esales.com
Informations about the package graphql-product-extension
About
This module is extending the Storefront Product object by adding two new fields: itemNumber
and subtitle
.
itemNumber
A wrapper for the field oxarticles__oxartnum
and shows the basic functionality.
subtitle
Represent a custom field of the table oxarticles_oxartnum
. To keep things simple an existing field is taken and the
value just changed.
Install
[ ! ] The module oxid-academy/graphql-product must be deactivated:
Usage
You can use your favourite GraphQL client to explore the API, if you do not already have one installed, you may use Altair GraphQL Client.
Query
URL: http://localhost/graphql/?shp=1&lang=0
Request
Response
Sources
- Background knowledge about the architecture of the module and the GraphQL Modules, since it differs to the eShop
Framework.
https://madewithlove.com/blog/software-engineering/hexagonal-architecture-demystified/ - The GraohQL Module documentation contains a tutorial which describes how to write own queries and mutations. Based of
this documentation this example module was written.
https://docs.oxid-esales.com/interfaces/graphql/en/latest/tutorials/introduction.html