定制 yireo/magento2-additional-endpoints-graph-ql 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

yireo/magento2-additional-endpoints-graph-ql

Composer 安装命令:

composer require yireo/magento2-additional-endpoints-graph-ql

包简介

README 文档

README

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 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
  }
}

categoryById(Int id) - Get a category by its ID

Example:

{
  categoryById(id:1){
    id
    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
    }
  }
}

cmsWidget(Int! id) - Get a CMS widget by its ID

Example:

{
  cmsWidget(id: "2") {
    id
    title
    html
    parameters {
      name
      value
    }
  }
}

validateCustomerToken - Validate a customer token

Example:

query validateToken {
  validateCustomerToken(token:"abc")
}

统计信息

  • 总下载量: 2.97k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 11
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 11
  • Watchers: 3
  • Forks: 5
  • 开发语言: PHP

其他信息

  • 授权协议: OSL-3.0
  • 更新时间: 2019-08-25

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固