graph-common
Version:
Open Graph API core js lib
17 lines (12 loc) • 354 B
text/coffeescript
Model schema for Node objects
class NodeSchema
@schema = { name: 'Node', definition: {
name: { type: String, required: true, unique: true },
path: { type: String, required: true, unique: true },
routers: {}
}}
@methods = {
parse_path: () ->
#...
}
module.exports = NodeSchema