承接 shergold/module-indexer-graph-ql 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

shergold/module-indexer-graph-ql

最新稳定版本:1.0

Composer 安装命令:

composer require shergold/module-indexer-graph-ql

包简介

N/A

README 文档

README

Provides GraphQl queries to access indexes information.

GraphQL Configuration

GraphQL Query

query($indexes: [String!]) {
  indexerState(indexer: $indexes ) {
    total_count,
    items {
      id,
      title,
      status,
      update_on,
      schedule_status,
      updated
    }
  }
}

GraphQL Parameters

The indexes array contains a list of the required indexes to be checked, for a full list of all indexes leave the array empty.

{
  "indexes": [
    "catalog_data_exporter_product_attributes",
    "catalogrule_product"
  ]
}

GraphQL Headers

Indexer-Auth-Key is required and needs to match the secret key that has been added to the Commerce Admin Configuration.

GraphQL Sample Response

{
  "data": {
    "indexerState": {
      "total_count": 2,
      "items": [
        {
          "id": "catalogrule_product",
          "title": "Catalog Product Rule",
          "status": "Ready",
          "update_on": "Schedule",
          "schedule_status": "idle (0 in backlog)",
          "updated": "2022-12-22 14:12:03"
        },
        {
          "id": "catalog_data_exporter_product_attributes",
          "title": "Catalog Attributes Feed",
          "status": "Ready",
          "update_on": "Schedule",
          "schedule_status": "idle (0 in backlog)",
          "updated": "2022-12-22 14:12:03"
        }
      ]
    }
  }
}

Commerce Configuration

Set Stores > Configuration > Security > GraphQL > Indexer State > Secret Key this key should be password grade and send in the Indexer-Auth-Key header.

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: OSL-3.0
  • 更新时间: 2022-12-22