vogels is a DynamoDB data mapper for node.js.
Questions tagged [vogels]
22 questions
5
votes
2 answers
ValidationException: The table does not have the specified index: GameTitleIndex
I am using Vogels, DynamoDB data mapper for NodeJS. I am querying against a global index according to the Vogels' documentation. All I have done is, created a model with a global secondary index like this:
let MyModel = vogels.define('MyModel', {
…

Ayushi Sood
- 101
- 1
- 8
2
votes
0 answers
Vogel(Dynamodb) queries dont work in test files with mocha
Here is the code that works for deleting and recreating the table when I run it in node directly.
// module.exports = function () {
const vogels = require('vogels');
if ( process.env.NODE_ENV === "development") {
…

Ravikanth Andhavarapu
- 706
- 2
- 8
- 20
2
votes
1 answer
How to fix Joi error on DynamoDB TypeError: child.schema._getLabel is not a function
I have a schema in dynamodb as shown below, I am using Joi, Vogels and NodeJS
schema: {
email: Joi.string().email(),
item: Joi.array().items(Joi.object().keys({
a: Vogels.types.uuid(),
b: Joi.string(),
c: Joi.string(),
d:…

Kushagara.K
- 67
- 2
- 8
2
votes
0 answers
detecting AWS dynamodb connection error in vogels or node SDK
I am using the npm vogels package, which is built on the main aws-sdk package for accessing all AWS services, including DynamoDB.
I'm trying to get good error handling when the connection cannot be made (wrong credentials, etc), but currently the…

Peter Lyons
- 142,938
- 30
- 279
- 274
1
vote
0 answers
Vogels : ValidationException : The provided key element does not match the schema
I am using vogels library in my project (https://www.npmjs.com/package/vogels).
Below is the schema
test2-help-opens:
hashKey: time
timestamps: true
schema:
time: string
channel: string
status: number
Here time column is the hash…

Amit
- 47
- 11
1
vote
1 answer
Vogels err: Error: Cannot find module './build/Release/DTraceProviderBindings'
I have one line in my file: const vogels = require('vogels');
however whenever I try to run the file I get the following error:
{ Error: Cannot find module './build/Release/DTraceProviderBindings'
at Function.Module._resolveFilename…

Neil Shweky
- 893
- 2
- 10
- 23
1
vote
1 answer
Dynogels: Query using OR comparison
I am trying to optimise the following scans into a single scan (or query). The only way I see is to use to use a OR comparator using DynamoDB. I am using dynogels (fork of vogels) in my application but sadly I am not aware of any OR query…

btype
- 1,593
- 19
- 32
1
vote
0 answers
How to use Vogels for DynamoDB to query by latitude, longitude and a radius?
I have a basic react application using Vogels for DynamoDB and a collection with latitude and longitude entries and I'm trying to do a radius search.
Any ideas?

Patrioticcow
- 26,422
- 75
- 217
- 337
1
vote
2 answers
Is Vogels a good choice for Amazon dynamoodb mapper with nodejs?
I see that no active development is going on from vogels page from a long time i.e, about 5 months https://github.com/ryanfitz/vogels
Are there any better options?
Has anyone faced issues with scalibility or I/O time with it?

user2379271
- 613
- 2
- 7
- 15
1
vote
1 answer
ValidationException with Indexing stringSet in Vogels for DynamoDB
Here is my model definition:
var Notification = vogels.define('Notification', {
tableName: 'notification',
hashKey: 'notification_id',
rangeKey: 'createdAt',
timestamps: true,
schema: {
notification_id :…

Kousha
- 32,871
- 51
- 172
- 296
1
vote
1 answer
Handling nulls on get calls in Vogels.js
I'm using Vogel.js to connect to Amazon DynamoDB. It's great, however one thing I'm struggling with is that a call such as
MyEntity.get({ my_key: keyValue }, callback);
will either return null if there is no results, or will return a wrapper…

RodH257
- 3,552
- 5
- 36
- 46
0
votes
1 answer
Unable to return/get response from closure
I want to get the result from the closure function. I did try doing some callback functions too but still I'm getting the same issue. I was able to console.log the result inside the closure/callback but can't return the response into a variable. I…

Kenneth Sunday
- 865
- 7
- 14
0
votes
1 answer
How to scan or query a Dynamodb table using Vogels by passing a JSON object of conditions?
I'm trying to implement a custom sails-dynamodb adapter, similar to this one but compatible with the new Sails version v1.0.
I got stuck in implementing the find() function, trying to use the passed map of conditions (the query.criteria.where…

Loukan ElKadi
- 2,687
- 1
- 16
- 20
0
votes
0 answers
dynamoDB query operation for array of strings checking using vogels node js
var arraTag = ["4"];
account.scan().where('tags').in(arrayTag).exec((err, data) => {
});
I am running above it showing empty data, but data is there in tag as 4.
By above query running i want where tags is 4 in table. that tags having array of…

kumar
- 1
0
votes
1 answer
Deleting item in dynamo db with additional data
guys, I'm kind of new to dynamo DB. I'm working on demo project in which I'm using dynamo as my DB. and I'm using vogel as it's data mapper.
Now I was going through the vogel documentation and there it was written if I had to delete I needed to…

Gardezi
- 2,692
- 2
- 32
- 62