dotdigital / dotdigital-magento2-extension-graph-ql
Dotdigital for Magento 2: Core GraphQl module
Installs: 52 151
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 6
Forks: 2
Open Issues: 0
Type:magento2-module
Requires
- php: ^7.4||^8.0
- dotdigital/dotdigital-magento2-extension: ^4.14.0
- magento/framework: >=102 <104
- magento/module-catalog: >=103 <105
- magento/module-quote: >=101 <103
- magento/module-store: >=101 <102
Replaces
This package is auto-updated.
Last update: 2024-11-11 12:22:49 UTC
README
About this module
Dotdigitalgroup_EmailGraphQl supports our core module. It provides type and resolver information for Magento to generate endpoints for:
- fetching tracking configuration data from the instance
- fetching email capture configuration from the instance
- retrieving order data for customers and guests on the order confirmation page
- updating the quote email address
Requirements
- This module requires the
Dotdigitalgroup_Email
module v4.14.0+
Installation
- This module is included in our core extension. Please refer to these instructions to install via the Magento Marketplace.
Endpoints
Queries
query getTrackingData {
trackingData {
page_tracking_enabled
roi_tracking_enabled
wbt_profile_id
region_prefix
}
}
query isEasyEmailCaptureNewsletterEnabled {
emailCaptureNewsletter {
is_enabled
}
}
query isEasyEmailCaptureCheckoutEnabled {
emailCaptureCheckout {
is_enabled
}
}
query getProductBrandValue($product_ids: [String]!) {
productBrands(product_ids: $product_ids) {
items {
brand
product_id
}
}
}
Mutations
mutation updateQuoteEmail($email: String!, $cartId: String!) {
updateQuoteEmail(
email: $email,
cartId: $cartId
)
}
Usage
For examples on how to integrate these endpoints into your front end, please see our Dotdigital PWA Toolkit.
Changelog
2.0.1
Improvements
- We've updated the module's dependencies. The module now requires PHP 7.4+ and Magento 2.3.7+.
2.0.0
Bug fixes
- We've removed the OrderData resolver to prevent any exploits of this endpoint.
1.2.2
Improvements
- We've updated a resolver to use a factory class.
1.2.1
Bug fixes
- We restored compatibility with PHP 7.2.
1.2.0
What's new
- We've added a new endpoint to retrieve the nominated brand attribute.
Bug fixes
- We updated the module's PSR-4 filepath.
1.1.0
What's new
- This module has been renamed
dotdigital/dotdigital-magento2-extension-graph-ql
.
Improvements
setup_version
has been removed from module.xml.
1.0.0
- Initial release