Questions tagged [dynamoose]

Dynamoose is a modeling tool for Amazon's DynamoDB for Node.js, inspired by Mongoose.

Summary

Dynamoose is a modeling tool for Amazon's DynamoDB NoSQL database service, written in for use with . Although inspired by , there are some key differences between the two packages due to differences between and .

Questions

Questions tagged with should not be tagged with .

Questions about server administration can be asked on https://dba.stackexchange.com.

Installation

$ npm i dynamoose

Resources

93 questions
0
votes
1 answer

How to OR Query for contains in Dynamoose?

I want to search(query) a bunch of strings from a column in DynamoDB. Using Dynamoose https://github.com/dynamoose/dynamoose But it returns nothing. Can you help if this type of query is allowed or is there another syntax for the same. Code…
jolly
  • 3,353
  • 1
  • 15
  • 21
0
votes
1 answer

Using original function inside jest mock causes infinite loop

I have a chainable method from dynamoose where in testing I would like to add an additional method to the chain. Essentially, in testing I would like to replace all instances…
Aposhian
  • 801
  • 1
  • 10
  • 27
0
votes
1 answer

How to instantiate Dynamoose Model from DynamoDB's AttributeValue format?

I am using Dynamodb streams to do some work on records as they are added or modified to my table. I am also using Dynamoose models in my application. The Dynamodb stream event passes an event object to my node.js lambda handler that includes the…
Benjamin
  • 3,428
  • 1
  • 15
  • 25
0
votes
1 answer

Pagination with Dynamoose.js and Angular6

Are there any good Practices for using Dynomoose.js to implement pagination with Angular. I would like to use scan.limit() in order to get some amount of Movies from the DB, for example, 20. How do I get the second scan 20-40 Movies and 40-60…
KalinJa
  • 483
  • 1
  • 4
  • 8
0
votes
1 answer

How to scan all records with filters using Dynamoose

I am trying to search for a word all records available using Dynamoose. I tried the code below, but to no avail... let buscarEmails = async (email, sistema) => { createDynamooseInstance() const Email = dynamoose.model('enviar_email',…
0
votes
0 answers

Dynamodb record not updating through for loop

I'm currently using dynamoose for managing records in dynamodb. from my client I'm receiving a collection of insiders insiders: [ { uid: '123', name: 'Insider A' }, { uid: '456', name: 'Insider B' }, { uid: '789', name: 'Insider B' } ] and…
AllenC
  • 2,754
  • 1
  • 41
  • 74
0
votes
1 answer

Why does dynamoose store the data only for a very short time?

I use simple setup from dynamoose page. const startUpAndReturnDynamo = async () => { const dynaliteServer = dynalite(); await dynaliteServer.listen(8000); return dynaliteServer; }; const createDynamooseInstance = () => { …
tomen
  • 539
  • 7
  • 20
0
votes
1 answer

Migrating from dynamodb (dynamoose) to postgresql (sequelize)- setting hashKey

I have a created a simple model using dynamoose and now I want to migrate it into postgresql using sequelize. I am acquainted with dynamodb and how hash keys and range keys are set in it but how do I accomplish the same in postgresql using…
Bikal Nepal
  • 477
  • 1
  • 10
  • 26
0
votes
0 answers

on dynamoose update ValidationException: The number of conditions on the keys is invalid

good afternoon dynamoose modal update throwing an error of ValidationException: The number of conditions on the keys is invalid. i am tried debbuging here is the debug result from export DEBUG=dynamoose* dynamoose:model Update…
ydvsailendar
  • 15
  • 10
0
votes
1 answer

Response duplicated but the count shows as 1

Using Dynamoose ORM with Serverless. I have a scenario where I'm finding user information based on recommendation. The response is as follows { "data": { "results": [ { "specialTip": "Hello World", …
0
votes
1 answer

How can i call query with parameter and then populate using dynamoose

var added = await Feature.scan("parentId").eq(baseIds).exec() .then(function (add) { return add.populate({ path: 'parentId', model: 'Feature' }) }) I have a server already…
ydvsailendar
  • 15
  • 10
0
votes
1 answer

Serverless: dynamodb giving error on create record when trying with async/await

I am trying to create a record in dynamodb(Using dynamoose). code is class Test { constructor() { this.table = dynamoose.model(tableName, tableSchema); } // userdata object - { // cusotmerEmail: 'tushar.gaurav+testf40@accionlabs.com', // …
0
votes
1 answer

Missing region in config while trying to run Chai on local DynamoDB with Dynamoose

I am using Restify and I am trying to learn how to write tests my CRUD methods. I can test them on Postman without any problems when I connect to DynamoDB. For tests, I will connect to my local DynamoDB, which is running on localhost:8000. On…
nope
  • 751
  • 2
  • 12
  • 29
0
votes
1 answer

Query with 3 parameters to dynamodb with dynamoose

I am trying to consult a DynamoDB table with 3 parameters, but it does not work. However, with 1 parameter it works perfectly. I'm work with NodeJs, DynamoDB, Dynamoose... and here is my code: var params = { TableName:…
Norak
  • 383
  • 2
  • 6
  • 14
0
votes
1 answer

To query on two fields

I have a Dynamoose (DynamoDB) model called PromoCode with a schema that looks like this: { promoCode: { hashKey: true, type: String, }, previouslyUsed: { type: Boolean, default: false, index: { global: true, …
KJ Price
  • 5,774
  • 3
  • 21
  • 34