if (typeof window === 'object') {
var _ = window._;
var helpers = window.Neo4jMapper.helpers;
} else {
var _ = require('underscore');
var helpers = require('./helpers');
}
var CypherQuery = function CypherQuery(query, parameters) {
this.statements = [];
if (typeof query === 'string')
this.query = query;
else if (typeof query === 'object')
this.statements = query;
if (parameters)
this.parameters = parameters;
this.cypher = _.extend(CypherQuery.prototype.cypher);
}
CypherQuery.prototype.statementsToString = function(options) {
var s = '';
var chopLength = 15;
var defaultOptions = {
niceFormat: true
};
if (this.statements) {
if (typeof options !== 'object')
options = {};
else
_.defaults(options, defaultOptions);
for (var i=0; i < this.statements.length; i++) {
var queryFragment = this.statements[i];
if (typeof queryFragment === 'string') {