Had to go through some hoops in order to get N1ql queries working through the node client.
To start, the line from the documentation lists to enable N1ql with the following line:
However, the Node.js SDK attaches
var uri = 'http://' + host + '/query';
So, in this example it should instead be entered:
Otherwise it will attempt to access
EDITED: I removed my second problem/fix as I see it’s fixed in the latest version of the code. The object model for the response changed in DP4 and I must have missed the update!