I am saving instance in mongodb but getting some null properties saved. I have used below configuration in Application.yml to use MongoSession
grails:
mongodb:
engine: mapping
I am using below code for saving my instance but it was saving null properties of instance also, which I don't want.
instance.save(validate: false, flush: true)
Thanks for the help in advance!