Comments (6)
Thanks for reporting! Can you provide an example on how to reproduce it ?
I will also do some tests in the meantime, I have not seen this issue before.
from dynamodb-oop.
I'm unable to find any scenario how this can happen
Can you provide more details?
Thanks
from dynamodb-oop.
Sure,
I try this:
var article = {..,isOffer:false,...}
DynamoDB.table('articles').insert(article, function(err,data) {
console.log( err, data )
})
Next, I test the result:
this.dbManager.$DynamoDBOOPClient
.table(this.tableName)
.where('_id').eq(id)
.get((err, result) => {
....
expect(result.isOffer).to.not.be.true;
....
});
and get this error:
Uncaught AssertionError: expected undefined to be false
When i try this:
var article = {..,isOffer:true,...}
DynamoDB.table('articles').insert(article, function(err,data) {
console.log( err, data )
})
with
this.dbManager.$DynamoDBOOPClient
.table(this.tableName)
.where('_id').eq(id)
.get((err, result) => {
....
expect(result.isOffer).to.be.true;
....
});
I get no errors.
I hope it helps
from dynamodb-oop.
can you add:
DynamoDB
.table(...)
.on('beforeRequest', function(op, payload) {
console.log(op, JSON.stringify(payload,null,"\t"))
})
for both insert() and get()
from dynamodb-oop.
I just made another update before I wrote the functions. And now the boolean type works perfectly. I'm very sorry about this, that was my mistake :-(
from dynamodb-oop.
No problem, good thing it works now 👍
from dynamodb-oop.
Related Issues (20)
- Expression error when using a having('key').between(1, 10) HOT 10
- update or insert is modifying my data object HOT 4
- Raising an issue to tell ... HOT 1
- Support for updating nested json in dynamoDB HOT 1
- Promise support HOT 4
- Docs scroll to top HOT 2
- Cannot use region provided in config.json HOT 2
- Executing an average operation on the DB HOT 1
- "OR" support in scan HOT 3
- Looping Scan with async/await question. HOT 3
- Issues due to shrinkwrap.json HOT 3
- Recursive scan example HOT 6
- Update table HOT 2
- Support to pass array of attribute names for "select" operand HOT 2
- Support Dynamo Transactions HOT 6
- BatchInsert not working HOT 2
- transact.insert is undefined on Lambda Layer HOT 2
- Support AWS SDK v3 HOT 2
- Disable Table Schema Table Warning HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dynamodb-oop.