没有合适的资源?快使用搜索试试~ 我知道了~
graphql-bookshelfjs:将GraphQL与书架ORM一起使用
共32个文件
js:23个
gitignore:3个
md:3个
需积分: 5 0 下载量 136 浏览量
2021-04-30
17:32:59
上传
评论
收藏 28KB ZIP 举报
温馨提示
graphql-bookshelfjs 概要 您的graphql查询和书架模型之间的简单桥梁。 该库使用书架模型将graphql查询解析为批处理和优化的查询。 安装 $ npm install --save graphql-bookshelfjs 请确保您已安装graphql和书架。 配置 共有2个配置步骤: 在GraphQL模式和解析功能的级别,您应该提供解析器,GraphQL引擎将调用该解析器来实际查询数据。 const graphQL = require ( 'graphql' ) ; const graphQLBookshelf = require ( 'graphql-bookshelfjs' ) ; const RootQuery = new graphQL . GraphQLObjectType ( { name : 'RootQuery' , fiel
资源推荐
资源详情
资源评论
收起资源包目录
graphql-bookshelfjs-master.zip (32个子文件)
graphql-bookshelfjs-master
example
models
index.js 593B
index.js 913B
knexfile.js 413B
package.json 246B
database
migrations
20170311114506_create_articles.js 569B
20170311114507_create_comments.js 525B
20170311114505_create_users.js 469B
.gitignore 10B
seeds
users.js 848B
articles.js 4KB
comments.js 1KB
graphql
schema.js 5KB
.gitignore 44B
README.md 3KB
package.json 1KB
test
common
schema.js 4KB
models.js 1KB
run
06-complex-query.js 10KB
03-belongs-to-many-where.js 3KB
02-belongs-to-many.js 4KB
07-query-with-arguments.js 3KB
hooks.js 809B
01-belongs-to.js 3KB
04-has-many.js 4KB
README.md 264B
05-has-one.js 4KB
LICENSE 1KB
src
index.js 2KB
loaders
index.js 7KB
.eslintrc.js 903B
.gitignore 50B
README.md 13KB
共 32 条
- 1
资源评论
无分别
- 粉丝: 22
- 资源: 4574
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功