/pocket48-graphql

GraphQL API for pocket48 (Official app for SNH48 Group)

Primary LanguageTypeScriptGNU General Public License v3.0GPL-3.0

Pocket48-GraphQL

用GraphQL获取SNH48 GROUP成员信息,支持嵌套复杂查询。 Get information of SNH48 Group with GraphQL.

问题/建议请发issue或者联系princez.wzz@gmail.com

测试链接 GraphiQL interface

How to use

获取BEJ名字缩写是dyx的同期中在G队前成员的名字和最近的5个直播回放:

{
  groups(name: "BEJ") {
    members(name: "dyx") {
      current {
        real_name
        period {
          members(team: "G") {
            former {
              real_name
              nick_name
              lives(count: 5) {
                title
                startTime
                streamPath
              }
            }
          }
        }
      }
    }
  }
}

Running on your own machine

Production

npm install
npm run build
npm start

Development

npm install
npm run dev # Using nodemon for reloading on save

Reference