Is there any tools that can auto Generate schema for JSON data like this? Its a long data and hard to write schema with auto generation.
{
"_id" : ObjectId("590886af47627f86e5857141"),
"code" : "MY",
"name" : "Malaysia",
"background" : "https://vfbdt",
"icon_image" : "https://sfergerg",
"main_image" : "https://sfergerg",
"is_active" : true,
"gov_system" : "dasdad",
"topics" : [
{
"name" : "overview",
"facts" : [
{
"key" : "capital",
"value" : "Kuala Lumpur"
},
{
"key" : "population",
"value" : "232424234"
},
{
"key" : "reliogion",
"value" : "Islam"
}
]
},
]
}
and Can I use nested schema in mongoose?
via Mehr
No comments:
Post a Comment