• Jump To … +
    bootstrap.litcoffee configuration_manager.litcoffee echo_router.litcoffee gql.litcoffee graph.litcoffee index.litcoffee mongodb_storage.litcoffee node_manager.litcoffee node_schema.litcoffee query.litcoffee redirect_router.litcoffee router_manager.litcoffee router_schema.litcoffee schema_manager.litcoffee schema_schema.litcoffee static_router.litcoffee storage_manager.litcoffee storage_router.litcoffee
  • node_schema.litcoffee

  • ¶

    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