How can I call the data I want with mongoose query or aggregate in next js

Viewed 18

my data

parentid:2,
id:4,
mlgName : {
  "en": "englishname"
  "tr": "turkceisim"
  "fr": "frenchname"
}

When I get the data, when I want only the "tr" place in the mlgName, or I want to include the "tr" and "en" places

latest version like this. BUT What I want to do here should not be to remove the "fr" I want to get what I want as a key, like saying "en" and "tr" ones should come

need this

 parentid:2,
    id:4,
    mlgName : {
      "en": "englishname"
      "tr": "turkceisim"
    }
0 Answers
Related