dgraph-orm:Dgraph的简化架构创建,查询和变异

时间:2024-05-22 10:12:10
【文件属性】:

文件名称:dgraph-orm:Dgraph的简化架构创建,查询和变异

文件大小:84KB

文件格式:ZIP

更新时间:2024-05-22 10:12:10

dgraph dgraph-client dgraph-nodejs dgraph-orm dgraph-js

dgraph-orm Dgraph的简化模式创建,查询和变异。 安装 npm install dgraph-orm 根据要连接的Dgraph的版本,您将不得不使用其他版本。 Dgraph版本 dgraph-orm版本 1.0.X 1.XY 1.1.X 2.XY 注意:只有从v1.XY到v2.XY的API损坏才是依赖项dgraph-js 。 功能DgraphClient.newTxn().mutate()返回一个messages.Assigned在V1.X类型但messages.Response在V2.X类型。 完整文件 您的第一个架构和模型 import dgraph from 'dgraph-orm' ; const UserSchema = new dgraph . Schema ( 'user' , { name : { type : dgraph . Typ


【文件预览】:
dgraph-orm-master
----.gitignore(26B)
----package.json(980B)
----package-lock.json(108KB)
----src()
--------query.ts(8KB)
--------helpers()
--------schema.ts(1KB)
--------index.ts(4KB)
--------model.ts(19KB)
--------connection.ts(2KB)
--------types.ts(1KB)
----LICENSE(1KB)
----tsconfig.json(331B)
----README.md(2KB)
----example()
--------index.ts(6KB)
----lib()
--------schema.d.ts(933B)
--------model.js.map(17KB)
--------types.js(110B)
--------types.js.map(102B)
--------query.js(10KB)
--------types.d.ts(2KB)
--------model.d.ts(4KB)
--------index.js(7KB)
--------helpers()
--------connection.js(2KB)
--------index.js.map(2KB)
--------schema.js.map(883B)
--------query.js.map(8KB)
--------query.d.ts(2KB)
--------connection.js.map(1KB)
--------schema.js(1KB)
--------model.js(36KB)
--------connection.d.ts(968B)
--------index.d.ts(3KB)
----.npmignore(54B)
----docs()
--------.nojekyll(0B)
--------model.md(10KB)
--------schema.md(5KB)
--------_sidebar.md(2KB)
--------README.md(1KB)
--------style.css(17KB)
--------index.html(714B)
--------types.md(2KB)

网友评论