Objective-C class object not mapping to array

Issue How can I pass the event to the toDoArray? I’m not sure what I’m missing. Any help appreciated. SDEventModel.h @interface SDEventModel : AWSDynamoDBObjectModel <AWSDynamoDBModeling> ViewController.h @property (nonatomic, strong) NSArray *toDoArray; ViewController.m if (task.result) { AWSDynamoDBPaginatedOutput *paginatedOutput = task.result; for

Continue reading

UnknownEndpoint: Inaccessible host: `localhost'. When trying to connect to localhost with express and dynamodb local

Issue I am using docker compose to create two containers one for dynamodb local and one for nodejs express app. docker-compose.dev.yml version: ‘3’ services: dynamodb-local: command: "-jar DynamoDBLocal.jar -sharedDb -optimizeDbBeforeStartup -dbPath ./data" image: "amazon/dynamodb-local:latest" container_name: dynamodb-local ports: – "8000:8000" volumes:

Continue reading

UnknownEndpoint: Inaccessible host: `localhost'. When trying to connect to localhost with express and dynamodb local

Issue I am using docker compose to create two containers one for dynamodb local and one for nodejs express app. docker-compose.dev.yml version: ‘3’ services: dynamodb-local: command: "-jar DynamoDBLocal.jar -sharedDb -optimizeDbBeforeStartup -dbPath ./data" image: "amazon/dynamodb-local:latest" container_name: dynamodb-local ports: – "8000:8000" volumes:

Continue reading

Dynamo db pagination

Issue I want to use pagination in dynamodb using aws-sdk DocumentClient() I am using node.js. What I want to do is get first 10 items and then return these value to the user. After that user makes a new request

Continue reading

Dynamo db query using contains operator

Issue My table items are of the form of function addDoc(movie,cb){ var params = { TableName: “Movies”, Item: { “year”: movie.year, “title”: movie.title, “info”: movie.info, “genres” : movie.info.genres || [] } }; docClient.put(params, function(err, data) { bar.tick(1) i++; cb(err); });

Continue reading

AWS @aws-sdk/lib-dynamodb 'Cannot read property '0' of undefined'

Issue I try to leverage @aws-sdk/lib-dynamodb for simplifying data retrieval from AWS DynamoDB. # aws.js const {DynamoDBClient,ScanCommand} = require(‘@aws-sdk/client-dynamodb’); const { DynamoDBDocumentClient } = require(‘@aws-sdk/lib-dynamodb’); const { fromIni } = require(‘@aws-sdk/credential-provider-ini’); const client = new DynamoDBClient({ credentials: fromIni({ profile: process.env.AWS_PROFILE

Continue reading