Questions tagged [ottoman-node]

6 questions
1
vote
1 answer

How to query a field inside array sub-document using ottomanjs using query builder

I could't able to query using arrays sub-document field using ottomanJS and I cant find any documentation for query building for array sub-document, any help would be appreciated. import { Schema, Query, getDefaultInstance } from "ottoman"; const …
1
vote
0 answers

Getting response empty when first time calling the couch node rest api

Getting the empty response when the node api hitting first time even though the data is available in couchbase, When hitting the second time it works fine. This is my api for getting the…
Mahesh
  • 395
  • 1
  • 2
  • 18
1
vote
1 answer

Couchbase find() error

As per the documentation teaches here under "Reading NoSQL Documents" part. I copied the exact same code below. UserModel.find({}, function(error, result) { if(error) { console.log("An error happened -> " + JSON.stringify(error)); } …
jofftiquez
  • 7,548
  • 10
  • 67
  • 121
1
vote
0 answers

Couchbase Ottoman nodejs Generic Error, Code:10

I am trying to connect to couchbase using ottoman-node with the following code below. ottoman.bucket = (new couchbase.Cluster(config.couchbase.test.server)).openBucket(config.couchbase.test.bucket, function (err) { if (err) …
jofftiquez
  • 7,548
  • 10
  • 67
  • 121
0
votes
1 answer

Document update only possible on Model.getById?

I can't seem to update a document if I retrieve it via a custom index other than Model.getById: let UserModel = ottoman.model("User", { createdON: {type: "Date", default:function(){return new Date()}}, name: { first: "string", …
HashBang
  • 58
  • 1
  • 8
0
votes
0 answers

Getting errors while executing lambda function using couchbase / ottoman node-js sdk

I am getting "Process exited before completing request" while executing lambda function. When I check the logs in cloud watch it shows the error which says "Cannot perform operation on a shutdown bucket." or sometimes it says { "errorMessage":…