Hello, I've a question. Let's say I have created s...
# community-help
d
Hello, I've a question. Let's say I have created schema named
blah
that has only one field
myKey
. When I get my data from DB I have a lot of keys in each object. And I'm lazy to do mapping manually. So I trying to add objects with a lot of keys. How can I automatically omit all extra fields that aren't defined in the schema?
k
Any field that's not part of schema is still stored as part of the document. Only fields present in the schema are indexed for operations like search etc.