I have a mongodb schema like this intended to supp...
# orm-help
m
I have a mongodb schema like this intended to support multiple language input,
{
"_id": {
"$oid": "61cd48ae528ffa2b3e44010e"
},
"name": {
"en": "Arwa Water 24 X 500ml",
"ar": "AR content ",
},
"description": {
"en": "Stay hydrated in a healthy way with this water, It is sure to quench your thirst and nourishes your body with all the essential vitamins and minerals"
},
*mrp*: 17,
*stock*: 100,
*packing*: "24"
}
Currently i use
mongoose
and
mongoose-intl
to retrieve language only data like this according to the language set, is it possible to achieve this with Prisma? if not, what are the alternatives?
{
"_id": {
"$oid": "61cd48ae528ffa2b3e44010e"
},
"name":  "Arwa Water 24 X 500ml",
"description": "Stay hydrated in a healthy way with this water, It is sure to quench your thirst and nourishes your body with all the essential vitamins and minerals",
*mrp*: 17,
*stock*: 100,
*packing*: "24"
}
1
Anyone?
@Vladimir Lecsei @Vladi Stevanovic @Alex Ruheni
v
👋 Hey @Muhammed Hafiz, welcome to the community!prisma rainbow Our team tries to reply to messages within a few days (if the open source community doesn't help first), so we'll do our best to address this today or tomorrow asap! In the meantime, can you tell us a bit more about your project? (e.g. is it a personal or work project, is it in production, stack, etc.) Thank you for your patience! 🙏
@Nurul @Raphael Etim @Austin FYI
n
Hi @Muhammed Hafiz, do let me know if this works for you or in case you have any follow-up queries.
m
Hey, Thanks for the reply. Is it possible to remove the ar,en keys?
n
No, you would need to keep the language identifier (ar,en) keys.