Skip to content

allrude/Yireo_AdditionalEndpointsGraphQl

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Additional GraphQL endpoints for Magento 2

This module offers some additional endpoints for loading information through GraphQL.

Installation

Use the following commands to install this module into Magento 2:

composer require yireo/magento2-additional-endpoints-graph-ql:@dev
bin/magento module:enable Yireo_AdditionalEndpointsGraphQl
bin/magento setup:upgrade

productById(Int id) - Get a product by its ID

Example:

{
  productById(id:42){
    sku
    name
  }
}

productBySku(String! sku) - Get a product by its SKU

Example:

{
  productBySku(sku:"VA22-SI-NA"){
    sku
    name
  }
}

cmsBlock(String! identifier) - Get a CMS block by its identifier

Example:

{
  cmsBlock(identifier:"example"){
    title
    content
  }
}

cmsPages - Get all CMS pages

Example:

{
  cmsPages {
    items {
      title
    }
  }
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%