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
- This module requires the
Dotdigitalgroup_Email
module v4.14.0+
- This module is included in our core extension. Please refer to these instructions to install via the Magento Marketplace.
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
)
}
For examples on how to integrate these endpoints into your front end, please see our Dotdigital PWA Toolkit.
- We've updated the module's dependencies. The module now requires PHP 7.4+ and Magento 2.3.7+.
- We've removed the OrderData resolver to prevent any exploits of this endpoint.
- We've updated a resolver to use a factory class.
- We restored compatibility with PHP 7.2.
- We've added a new endpoint to retrieve the nominated brand attribute.
- We updated the module's PSR-4 filepath.
- This module has been renamed
dotdigital/dotdigital-magento2-extension-graph-ql
.
setup_version
has been removed from module.xml.
- Initial release