Tuesday 29 October 2019

Mongoose as your primary schema

In most articles related to Mongoose, Mongoose schemas seem to be the Primary schema. This seems to me like a mistake. The schema definition is coupled with Mongoose and Mongoose is written in NodeJS. In my humble opinion, the ideal Primary schema definition should be portable and use a well-known standard that crosses the boundaries of programming languages and networks. REST API using Hypermedia can use this schema to share metadata of return resources. Mongoose does schema do not fit this requirement. Instead, a mongoose schema should be derived from the Primary Schema. A good candidate is JSON Schema. However, I noticed a reduction in mention of JSON Schema in Google searches. Anyone using JSON Schema? What challenges you faced with while using it?

Submitted October 29, 2019 at 07:33PM by faboulaws

No comments:

Post a Comment