Search code examples
abp-framework

Samples: BookStore-MongoDB Does the Book ID exist in the MongoDB?


I've just come across the abp framework and I have a question that I'd like to ask during the learning process.

I'm looking at this document Book Store: Angular UI & MongoDB (https://docs.abp.io/en/abp/latest/Tutorials/Part-1?UI=NG&DB=Mongo) The function is created and he works smoothly.

But the id that get from API (/api/app/book) I couldn't find in MongoDB.

I would like to know where the id is stored, or Is he acting according to the content of the data? Get Id From MongoDB:
Get Id From MongoDB

Get Id From API:
Get Id From API


Solution

  • As I understand the problem is not caused by the ABP framework.

    HttpApi.Host then get data from /api/app/book:
    HttpApi.Host then get data from /api/app/book

    Using mongodb client and select the collection(Books):
    Using mongodb client and select the collection(Books)

    The step I took for the solution:
    The step I took for the solution

    This shows us that the problem is encoding/decoding.