Git Product home page Git Product logo

Comments (2)

FottyM avatar FottyM commented on May 22, 2024

I found the line that is causing is it. It just skips undefined 🤔.

for (const [field, value] of Object.entries(fieldOrFields)) {
        if (value === undefined) {
          continue;
        }

from denodb.

eveningkid avatar eveningkid commented on May 22, 2024

Hey Fortunat,

Sorry it took me awhile to get back to you!

I can finally say "it is a feature" because it is indeed intended behaviour.

Just ask yourself: "is it worth making a SQL query if no iso code is provided?"

In your case, I think the best option would be to check for isoCode being undefined and if it is, not making the query. I don't know exactly what is your use case here, but I believe you don't want to query anything if it is undefined.

Even from a developer perspective, if isoCode could be undefined, it should appear in your code because this is not very common.

I hope my explanation makes sense to you. If it doesn't, please do not hesitate to let me know!

Have a great day

from denodb.

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.