【文件属性】:
文件名称:tastypie-rethink:Tastypie 框架的 Rethinkdb 资源类型
文件大小:72KB
文件格式:ZIP
更新时间:2021-05-31 04:57:25
JavaScript
美味派-重新思考
Rethink 的 Tastypie 资源。
安装重新思考资源
npm install thinky tastypie - rethink
重新思考模型
// Make A Rethink Model
var Model = thinky . createModel ( 'tastypie_model' , {
index : type . number ( )
, guid : type . string ( )
, isActive : type . boolean ( ) . default ( false )
, balance : type . string ( )
, picture : type . string ( )
, age : type . number ( )
【文件预览】:
tastypie-rethink-master
----scripts()
--------test.js(880B)
----lib()
--------fields()
--------resource()
--------toField.js(203B)
--------index.js(442B)
--------addrelation.js(1005B)
----LICENSE(1KB)
----test()
--------resource.relations.spec.js(13KB)
--------resource.http.spec.js(13KB)
--------data()
--------filters.spec.js(20KB)
----README.md(10KB)
----.gitignore(526B)
----index.js(44B)
----package.json(1KB)