Skip to content

resultDataContents #206

Closed
Closed
@ekkis

Description

@ekkis

in looking at my distribution's lib-new/GraphDatabase.js, bottom of the cypher method, I see:

236             formats.push(format = lean ? 'row' : 'rest');
237             _results.push({
238               statement: query,
239               parameters: params || {},
240               resultDataContents: [format]
241             });

I tried looking at the sources here on github but I don't read coffee easily and couldn't even find the code, but in essence, line 236 seems to me wants to be format == so it's a comparison, not an assignment. also line 240 should likely be: resultDataContents: formats (or perhaps I'm wrong because I see formats is defined outside the function that generates the statements, so it seems to be a collector whose values are tossed...

in any case "rest" is not a valid value for the endpoint, "graph" is and I don't see a way to pass that into the code. is this borked or how do I do this?

q = { 
    statement: "match (n) return n",
    resultDataContents: ["graph"],
    includeStats: false
};  
q = JSON.stringify({statements: [q]});
db.cypher(q, function(ls) { ... });

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions