egg-graphql-partialable
egg graphql plugin
Last updated 3 months ago by jovercao .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install egg-graphql-partialable 
SYNC missed versions from official npm registry.

egg-graphql-partialable


fork 自 egg-graphql,npm包名更换为egg-graphql-partialable,使用方法与egg-graphql保持一致

egg-graphq的基础上添加了以下功能:

  1. 添加 #import 指令的支持,以支持文件拆分功能,详见下文
  2. 添加代码编译报错提示(精确到行列),帮助你迅速找到grahql错误文件位置
  3. 解决了对graphql及graphql-tools版本依赖过旧带来的问题。

#import指令使用方式

目录结构如下:

  • src
    • user
      • schema.graphql
      • user.graphql
      • extFields.graphql

文件内容如下:

# schema.graphql
#import ./user.graphql

type Query {
  user(id: Int!): User!
}
# user.graphql
type User {
  name: String!
  age: Int!
  password: String
  #import ./extFields.graphql
}
# extFields.graphql
enabled: Boolean!
createAt: Date!
updateAt: Date!

编译后结果:

type User {
  name: String!
  age: Int!
  password: String
  enabled: Boolean!
  createAt: Date!
  updateAt: Date!
}

type Query {
  user(id: Int!): User!
}

Current Tags

  • 2.6.17                                ...           latest (3 months ago)

27 Versions

  • 2.6.17                                ...           3 months ago
  • 2.6.16                                ...           3 months ago
  • 2.6.15                                ...           3 months ago
  • 2.6.14                                ...           3 months ago
  • 2.6.13                                ...           3 months ago
  • 2.6.12                                ...           3 months ago
  • 2.6.11                                ...           3 months ago
  • 2.6.10                                ...           3 months ago
  • 2.6.9                                ...           5 months ago
  • 2.6.8                                ...           5 months ago
  • 2.6.7                                ...           5 months ago
  • 2.6.6                                ...           5 months ago
  • 2.6.5                                ...           5 months ago
  • 2.6.4-beta09                                ...           5 months ago
  • 2.6.4-beta08                                ...           5 months ago
  • 2.6.4-beta07                                ...           5 months ago
  • 2.6.4-beta06                                ...           5 months ago
  • 2.6.4-beta05                                ...           5 months ago
  • 2.6.4-beta04                                ...           5 months ago
  • 2.6.4-beta03                                ...           5 months ago
  • 2.6.4-beta02                                ...           5 months ago
  • 2.6.4-beta01                                ...           5 months ago
  • 2.6.4                                ...           5 months ago
  • 2.6.3                                ...           5 months ago
  • 2.6.2                                ...           5 months ago
  • 2.6.1                                ...           5 months ago
  • 2.6.0                                ...           5 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 27
Last Month 42
Dependencies (5)
Dev Dependencies (12)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |