graphql-mongo

时间:2021-05-17 04:05:28
【文件属性】:
文件名称:graphql-mongo
文件大小:7KB
文件格式:ZIP
更新时间:2021-05-17 04:05:28
JavaScript graphql-mongo 使用graphql通过mongodb验证数据插入,数据查询,数据更新 #安装 npm install graphql-mongo 用法 const mongoGQL = require ( 'graphql-mongo' ) const schema = ` type Test { prop: Int! } # delete method only return the n what is the number of deleted documents type Delete { n: Int! } input Insert { prop: Int! } type Query { test(prop: Int): [Test
【文件预览】:
graphql-mongo-master
----.gitignore(892B)
----package.json(594B)
----.travis.yml(131B)
----LICENSE(1KB)
----index.js(493B)
----README.md(2KB)
----lib()
--------handler.js(1KB)
--------get-collection.js(235B)
--------mongo.js(3KB)
----test()
--------update.test.js(1KB)
--------delete.test.js(1KB)
--------insert.test.js(963B)
--------find.test.js(1KB)

网友评论