mageworx / module-seoxtemplates-graph-ql
mageworx/module-seoxtemplates-graph-ql
N/A
MageWorx_SeoXTemplatesGraphQl
GraphQL API module for Mageworx Magento 2 SEO Suite Ultimate extension.
Installation
1) Copy-to-paste method
- Download this module and upload it to the
app/code/MageWorx/SeoXTemplatesGraphQldirectory (create "SeoXTemplatesGraphQl" first if missing)
2) Installation using composer (from packagist)
- Execute the following command:
composer require mageworx/module-seoxtemplates-graph-ql
How to use
Categories query example
All Category SEO-attributes (meta title, meta description, ...) set in "Bags[ - Filters: {filter_all}]"
query GetCategories($id: String!, $pageSize: Int!, $currentPage: Int!, $filters: ProductAttributeFilterInput!, $sort: ProductAttributeSortInput) {
categories(filters: {ids: {in: [$id]}}) {
items {
uid
...CategoryFragment
}
}
products(pageSize: $pageSize, currentPage: $currentPage, filter: $filters, sort: $sort) {
...ProductsFragment
mw_seo_category_data {
meta_title
meta_description
meta_keywords
category_seo_name
}
}
}
fragment CategoryFragment on CategoryTree {
uid
meta_title
meta_keywords
meta_description
category_seo_name
}
fragment ProductsFragment on Products {
items {
id
uid
name
sku
url_key
}
page_info {
total_pages
}
total_count
}
Query Variables:
{
"currentPage": 1,
"id": "4",
"filters": {
"color": {
"eq": "49"
},
"category_id": {
"eq": "4"
}
},
"pageSize": 1,
"sort": {
"position": "ASC"
}
}
Answer:
{
"data": {
"categories": {
"items": [
{
"uid": "NA==",
"meta_title": "Bags",
"meta_keywords": "Bags",
"meta_description": "Bags",
"category_seo_name": "Bags"
}
]
},
"products": {
"items": [
{
"id": 7,
"uid": "Nw==",
"name": "Impulse Duffle",
"sku": "24-UB02",
"url_key": "impulse-duffle"
}
],
"page_info": {
"total_pages": 4
},
"total_count": 4,
"mw_seo_category_data": {
"meta_title": "Bags - Filters: Color: Black",
"meta_description": "Bags - Filters: Color: Black",
"meta_keywords": "Bags - Filters: Color: Black",
"category_seo_name": "Bags - Filters: Color: Black"
}
}
}
}
Products query example
All Product SEO-attributes (meta title, meta description, ...) set in "Wayfarer Messenger Bag[ in {categories}]"
query getProductDetailForProductPage($urlKey: String!) {
products(filter: {url_key: {eq: $urlKey}}) {
items {
id
uid
...ProductDetailsFragment
}
}
}
fragment ProductDetailsFragment on ProductInterface {
categories {
uid
breadcrumbs {
category_uid
}
}
id
uid
meta_title
meta_description
meta_keyword
product_seo_name
name
sku
url_key
... on ConfigurableProduct {
configurable_options {
attribute_code
attribute_id
uid
label
values {
uid
default_label
label
store_label
use_default_value
}
}
variants {
attributes {
code
value_index
}
product {
uid
media_gallery_entries {
uid
disabled
file
label
position
}
sku
stock_status
}
}
}
}
Query Variables:
{
"currentPage": 1,
"id": "4",
"filters": {
"color": {
"eq": "49"
},
"category_id": {
"eq": "4"
}
},
"pageSize": 1,
"sort": {
"position": "ASC"
}
}
Answer:
{
"data": {
"products": {
"items": [
{
"id": 4,
"uid": "NA==",
"categories": [
{
"uid": "Mw==",
"breadcrumbs": null
},
{
"uid": "NA==",
"breadcrumbs": [
{
"category_uid": "Mw=="
}
]
},
{
"uid": "Nw==",
"breadcrumbs": null
},
{
"uid": "OA==",
"breadcrumbs": null
}
],
"meta_title": "Wayfarer Messenger Bag",
"meta_description": "Wayfarer Messenger Bag",
"meta_keyword": "Wayfarer Messenger Bag",
"product_seo_name": "Wayfarer Messenger Bag",
"name": "Wayfarer Messenger Bag",
"sku": "24-MB05",
"url_key": "wayfarer-messenger-bag"
}
]
}
}
}
No changelog yet
The vendor hasn't published a changelog. Tagged releases appear in the Versions tab.
Requires 3
| Package | Constraint |
|---|---|
| mageworx/module-seoxtemplates | >= 2.13.8 |
| magento/module-cms-graph-ql | >= 100.3.1 < 101 |
| magento/module-catalog-graph-ql | >= 100.3.1 < 101 |
Compatibility
Each Magento release line is installed on its supported PHP versions, then the module is built (DI compilation + static-content deploy) and its unit and integration suites are run. The matrix shows the lines and PHP versions the module is confirmed to install and run on. Code-quality results further down (phpstan, phpcs, …) are reported separately and never affect compatibility.
| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | not tested | not tested | ||
| 2.4.8 | not tested | not tested | ||
| 2.4.9 | not tested | not tested |
Code Quality
Advisory checks against the module's source. Static analysis runs once across the whole module; PHPStan re-runs per Magento + PHP version because resolvable symbols differ between releases. These NEVER affect the Compatibility badge — a phpcs finding can't make a module incompatible.
Static analysis
Coding standards (phpcs), mess detection (phpmd), copy-pasted code (cpd), PHP cross-version compatibility, composer.json validity. Each runs once for the whole module.
PHPStan
Type-checks the module's PHP against a real Magento install at the configured gate level. Re-runs per Magento and PHP version because resolvable symbols differ between releases. Cell → details modal.
Tests
Unit and integration suites, run for each applicable Magento and PHP version. A test failure speaks to the module's behaviour, not its compatibility with a Magento line, so it is reported here separately and never reddens the compatibility matrix.
Unit tests
| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | N/A | N/A | ||
| 2.4.8 | N/A | N/A | ||
| 2.4.9 | N/A | N/A |
Integration tests
| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | N/A | N/A | ||
| 2.4.8 | N/A | N/A | ||
| 2.4.9 | N/A | N/A |
Security
Security checks run directly against the module: an audit of its declared dependencies for known vulnerabilities (composer audit) and a scan of its source for malware and web-shell signatures. Each runs once. A malware detection fails the version outright.
More from mageworx
View vendorTurn an existing module into recurring revenue.
If you already maintain a Magento 2 module on GitHub or GitLab, listing it on Packagento takes about five minutes. We mirror your tags, handle distribution signing, and route paid licenses through Stripe Connect, so you can keep shipping the way you already do.