Giter Club home page Giter Club logo

Comments (6)

adrianpraja avatar adrianpraja commented on July 17, 2024

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.

adrianpraja avatar adrianpraja commented on July 17, 2024

I'm unable to find any scenario how this can happen

Can you provide more details?

Thanks

from dynamodb-oop.

renehauck avatar renehauck commented on July 17, 2024

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.

adrianpraja avatar adrianpraja commented on July 17, 2024

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.

renehauck avatar renehauck commented on July 17, 2024

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.

adrianpraja avatar adrianpraja commented on July 17, 2024

No problem, good thing it works now 👍

from dynamodb-oop.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.