Open LucianBuzzo opened 6 years ago
I debugged this further and found that the reason for reqlschema not returning the value is because the markers
field wasn't present on the target document that I expected to be returned. @jviotti if a field is not explicitly required, does reqlschema make that field optional? It appears not to.
It looks like something is wrong in this else
statement https://github.com/resin-io-modules/reql-schema/blob/master/lib/index.js#L140
Given a document like this:
and a schema like this:
I would expect the document to be returned, but it is not.