Docs for Data Store Component

@Teodor - just came across this looking for a solution to something.

I have a form, 29 inputs - relating to my ElasticSearch, as you know. I want to provide our end user with the option to ‘store’ a search, which can be any number of combinations from the 29 filters.

I’ve been exploring the Data Store, and reading through this post. It looks like I can set an event > add record and even update/add record for the Data Store on form submit/success easily enough.

However, what I don’t quite understand, is when I do this on ‘submit’ - I don’t have any inputs, or variables, it just inserts a record. Can you help me to understand what this ‘record’ would be when done on a form success event action.

I see a record created in dev tools storage, but no actual data from the form. How would I pass the full form into, or only the inputs used into the datastore?

The alternative, I could perhaps add to the data store on each input update perhaps, but that seems like an unnecessary load to do that if not every user wishes to save a search, or that specific search.