__initNode__
function__initNode__()
Node
Represents the node object model and the neo4j-node-query-api
You can register own models, including "inheritance"
Requirements (for browser and nodejs):
- neo4jmapper helpers
- underscorejs
- sequence (https://github.com/coolaj86/futures)
var __initNode__ = function(neo4jrestful, Graph) {
if (typeof window === 'object') {
// browser
// TODO: find a solution for bson object id
var helpers = window.Neo4jMapper.helpers;
var _ = window._;
var ConditionalParameters = window.Neo4jMapper.ConditionalParameters;
var CypherQuery = window.Neo4jMapper.CypherQuery;
} else {
var helpers = require('./helpers');
var _ = require('underscore');
var ConditionalParameters = require('./conditionalparameters');
var CypherQuery = require('./cypherquery');
}