All Projects → adobe → commerce-cif-magento-graphql

adobe / commerce-cif-magento-graphql

Licence: Apache-2.0 license
Magento GraphQL data models and query builders for AEM

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to commerce-cif-magento-graphql

commerce-cif-connector
AEM Commerce connector for Magento and GraphQL
Stars: ✭ 42 (+110%)
Mutual labels:  commerce, magento, adobe, aem, cif
Aem Core Cif Components
A set of configurations and components to get you started with AEM Commerce development
Stars: ✭ 60 (+200%)
Mutual labels:  commerce, magento, adobe, aem
aem-cif-project-archetype
Maven template to create new CIF Project AEM projects that follow best practices
Stars: ✭ 20 (+0%)
Mutual labels:  commerce, adobe, aem, cif
aem-docker-getting-started
Getting started guide for development with Adobe Experience Manager and Docker.
Stars: ✭ 38 (+90%)
Mutual labels:  adobe, aem
aem-spa-project-archetype
Maven Archetype for creating new AEM SPA projects
Stars: ✭ 64 (+220%)
Mutual labels:  adobe, aem
Aem Links
Adobe Experience Manager links, cheat sheets and solutions to common problems.
Stars: ✭ 254 (+1170%)
Mutual labels:  adobe, aem
AEM-DataLayer
Simple DataLayer API for Adobe Experience Manager
Stars: ✭ 33 (+65%)
Mutual labels:  adobe, aem
magento2-checkout-success-misc-script
Add Miscellaneous HTML and JavaScript codes to Magento2 checkout conformation page
Stars: ✭ 26 (+30%)
Mutual labels:  magento, adobe
Aem Project Archetype
Maven template to create best-practice websites on AEM.
Stars: ✭ 337 (+1585%)
Mutual labels:  adobe, aem
M2cert
Adobe Magento2 Certification Study Guides - 2020/2021 Updates for M2 2.3/2.4
Stars: ✭ 147 (+635%)
Mutual labels:  magento, adobe
React Storefront
Build and deploy e-commerce progressive web apps (PWAs) in record time.
Stars: ✭ 275 (+1275%)
Mutual labels:  commerce, magento
React Storefront
React Storefront - PWA for eCommerce. 100% offline, platform agnostic, headless, Magento 2 supported. Always Open Source, Apache-2.0 license. Join us as contributor ([email protected]).
Stars: ✭ 292 (+1360%)
Mutual labels:  commerce, magento
Tools
Tools to support development, testing and deployment of Marketing Cloud technologies
Stars: ✭ 94 (+370%)
Mutual labels:  adobe, aem
cookbook-cq
Chef cookbook for Adobe CQ (aka AEM)
Stars: ✭ 20 (+0%)
Mutual labels:  adobe, aem
aem-touch-ui-validation
AEM Touch UI Validation Library
Stars: ✭ 40 (+100%)
Mutual labels:  adobe, aem
module-login-as-customer
Allows admin to login as a customer (enter to customer account).
Stars: ✭ 104 (+420%)
Mutual labels:  magento
magento2-allegro
Magento 2 Allegro Integration module
Stars: ✭ 25 (+25%)
Mutual labels:  magento
magento-2-pronko-consulting-theme
Pronko Consulting Theme for Magento 2
Stars: ✭ 47 (+135%)
Mutual labels:  magento
commerce
🛒 e-commerce-platform
Stars: ✭ 54 (+170%)
Mutual labels:  commerce
user-profile-plugin-adobe-xd
User Profile plugin for Adobe XD enables designers to displays beautiful generated avatars 📸 in your design prototype
Stars: ✭ 17 (-15%)
Mutual labels:  adobe

CircleCI Maven Central

Magento GraphQL data models and query builders

This project contains the Magento GraphQL data models and query builders that have been automatically generated based on the default/generic (= out-of-the-box) Magento GraphQL schema. These classes can be used to build GraphQL requests and to parse/deserialise GraphQL JSON responses into java objects. These files are suitable for all projects that want to manipulate the default set of objects and attributes available in Magento, without any need to access for example customized product attributes.

If you want to access customized attributes like extra product attributes added to your product attributes set in Magento, you can use the GraphQL Java Generator to generate a similar set of Java classes that would include the custom attributes of your Magento project.

Starting with version 3.1.0-magento232, this library now also supports custom query fields. That is, it is now possible to add custom fields to any GraphQL query without having to regenerate the Java classes, and the deserialization of JSON responses will accept and allow the parsing of custom fields. See the examples in the unit tests to find out more about that new feature. Note that this feature should be used with care because it basically bypasses the type-checking enforced by the query builders and the deserialization.

Installation

To build and install the latest version in a running AEM instance, simply do

mvn clean install sling:install

This installs everything by default to localhost:4502 without any context path. You can also configure the install location with the following maven properties:

  • aem.host: the name of the AEM instance
  • aem.port: the port number of the AEM instance
  • aem.contextPath: the context path (if any) of your AEM instance, starting with /

Versioning

The following versioning scheme is used for that maven dependency: MAJOR.MINOR.PATCH-magentoXYZ.

The MAJOR.MINOR.PATCH parts refers to the semantic versioning of this maven artifact.

The magentoXYZ part refers to the version of the Magento GraphQL API, for example for Magento GraphQL 2.3.0 or 2.3.1.

For example, the first released version of this artifact is 1.0.0-magento230, which means that it uses the GraphQL schema from Magento 2.3.0 and is the first major version of that artifact.

Using the query builders and parsing responses

To use this library in your project, just add the following maven dependency to your project and install the bundle in your AEM instance:

<dependency>
    <groupId>com.adobe.commerce.cif</groupId>
    <artifactId>magento-graphql</artifactId>
    <version>...</version>
    <scope>provided</scope>
</dependency>

You can check some examples to create GraphQL queries and parse the JSON responses in the unit tests, including a test/example showing how to use GraphQL aliases. In addition, you can use our generic GraphQL client bundle for AEM to send the queries.

Remove un-used imports

To format the code, sort and remove un-used imports that were automatically generated, please run the format-code profile.

mvn clean install -Pformat-code

Releases to Maven Central

Releases are triggered by manually running mvn release:prepare release:clean on the master branch. This automatically pushes a commit with a release git tag like magento-graphql-x.y.z-magento230 which triggers a dedicated CircleCI build that performs the deployment of the artifact to Maven Central.

Contributing

Contributions are welcomed! Read the Contributing Guide for more information.

Licensing

This project is licensed under the Apache V2 License. See LICENSE for more information.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].