C
C#6mo ago
Nefario

Need help to get data from MongoDB

i have my mongodb data that like this
bson
[
{
"_id": {"$oid": "665b193178262482ba1f5bca"},
"bank_data": {
"newCustomer": {
"batches": [
{
"BatchName": "Dell",
"DetailsData": [
{
"username": "NewCustomer",
"NoHp": "62819555831",
"LastDigitHp": "********831"
},
{
"username": "NewCustomer",
"NoHp": "62819522831",
"LastDigitHp": "********831"
},
{
"username": "NewCustomer",
"NoHp": "62815422234",
"LastDigitHp": "********234"
}
]
}
]
},
"existingCustomer": null
},
"client_id": "TESTING",
"dataInfo": {
"PageSize": 3,
"PageStart": 1,
"PageEnd": 3
}
}
]
bson
[
{
"_id": {"$oid": "665b193178262482ba1f5bca"},
"bank_data": {
"newCustomer": {
"batches": [
{
"BatchName": "Dell",
"DetailsData": [
{
"username": "NewCustomer",
"NoHp": "62819555831",
"LastDigitHp": "********831"
},
{
"username": "NewCustomer",
"NoHp": "62819522831",
"LastDigitHp": "********831"
},
{
"username": "NewCustomer",
"NoHp": "62815422234",
"LastDigitHp": "********234"
}
]
}
]
},
"existingCustomer": null
},
"client_id": "TESTING",
"dataInfo": {
"PageSize": 3,
"PageStart": 1,
"PageEnd": 3
}
}
]
i still dont quite figure it out on how to get the data from "DetailsData" only. These is my model data https://paste.mod.gg/sowubyepgkku/0 and this is how i tried to get the data https://paste.mod.gg/mrxldxitscvi/0 my only problem was on GetCustomerDataListAsync method. what i trying to do was getting only "DetailsData" only. how can i get the data? Thank you
BlazeBin - sowubyepgkku
A tool for sharing your source code with the world!
BlazeBin - mrxldxitscvi
A tool for sharing your source code with the world!
No description
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server