loopbackio/loopback-connector-mongodb

id=null from the response using mongodb

Closed this issue · 2 comments

Maintainers' Note: This issue has been posted elsewhere:

Describe the bug

When i am getting the data from the use i am getting response with id=null.

[
  {
    "id": null,
    "fullname": "Arjun Subedi",
    "email": "arjunsubedi360@gmail.com",
    "mobile": "9812345",
    "gender": "Male",
    "roleId": "637991fd8260e91928d9a7f8"
  },
  {
    "id": null,
    "fullname": "Arjun Subedi",
    "email": "arjunsubedi360@gmail.com",
    "mobile": "9862972729",
    "gender": "Male",
    "roleId": "637991fd8260e91928d9a7f8"
  }
]

Logs

No response

Additional information

No response

Reproduction

https://github.com/arjunsubedi-varosa/mumme-develop

Hi @arjunsubedi-varosa, please provide the following to assist:

  1. A publicly-accessible reproduction sandbox
  2. A database schema / data setup script
  3. The steps to use the reproduction sandbox

This is resolve i had assign id as number but is should have been string. Thanks .