question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Schema is not applied in reading

See original GitHub issue

I have a collection on MongoDb with several fields and not all of them are defined in the model schema. For example on the db I have a document with fields a, b, c and d, and in my mongoose schema I have only a and b defined. When I query the collection, the returned documents contains also these additional fields. Why? IMHO it shouldn’t be like that, the returned document should contains only the declared fields. Opinions?

thx

Issue Analytics

  • State:open
  • Created 7 years ago
  • Comments:11

github_iconTop GitHub Comments

1reaction
libookcommented, Sep 5, 2019

@vkarpov15 JSON Schema can be use to validate JSON data in much places in modern web services. It will be very helpful if there are tools for converting format between Mongoose Schemas and JSON Schemas. That will be easy to reuse JSON Schemas.

0reactions
vkarpov15commented, Jan 18, 2021

@Enado95 not currently.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Teaching Readers to Use their Schema - This Reading Mama
Teaching readers how to use their schema is vital for comprehension to occur. Try this simple schema activity for activating schema and ...
Read more >
Teaching Schema To Primary Readers: The Why, How, and ...
Our schema helps us interpret the world around us. If we don't actively think about what we are reading, we are simply reading...
Read more >
Schemata Theory and the Implication for Teaching Reading ...
Another important characteristics of schema is that, a schema is not constructed in isolation of what else is known. Any type of knowledge...
Read more >
The Effects of Schema Activation and Reading Strategy Use ...
The findings of the study showed that reading strategy use proved to be a significant contributor to reading comprehension but not for background...
Read more >
Schema Theory in Reading - Academy Publication
general knowledge structure used for understanding". The fundamental tenet of schema theory assumes that written text does not carry meaning by itself.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found