Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Add the ability to not persist "empty" embedded documents #514

Open
tystr opened this Issue · 2 comments

2 participants

@tystr

It would be nice to have the ability to not persist embedded documents if they are "empty", similar to how nullable=false works for null properties. Thoughts?

@jmikola
Owner

What is that embedded object contains a non-nullable field? One mapping will definitely have to override the other.

@tystr

hmm yes, I suppose you'd have to iterate into each embedded document and check the nullable mapping...or let the embedded object's do-not-persist-if-empty mapping override it.... Which could be confusing for users, but could be a nice NoSQL-like feature to have...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.