Giter VIP home page Giter VIP logo

Comments (4)

cgole avatar cgole commented on September 25, 2024

Since cloudant uses documents to store data, we can only use type string for id:
see https://docs.cloudant.com/document.html

from loopback-connector-cloudant.

jannyHou avatar jannyHou commented on September 25, 2024

Add some details from discussion:

"id": {
     "type": "number",
     "id": true,
     "required": true,
     "generated": false
}

Will see error

Document id must be a string

I am figuring out how loopback converts the id type to string, will update details later. Not sure which one is better, giving a warning or throwing an error, but we should add some validation/check instead of silently changing it to another type.

from loopback-connector-cloudant.

cgole avatar cgole commented on September 25, 2024

@deepakrkris this needs to be fixed asap. Customer is pushing for a fix

from loopback-connector-cloudant.

ssh24 avatar ssh24 commented on September 25, 2024

Issue fixed on #115. Moving it to TBR.

from loopback-connector-cloudant.

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.