WatermelonDB icon indicating copy to clipboard operation
WatermelonDB copied to clipboard

Storing dynamic data

Open cemremengu opened this issue 7 years ago • 2 comments

Is it possible to store dynamic data (i.e. without setting up any models)? We are running some ad-hoc queries on our main database but don't know the schema of result set beforehand.

cemremengu avatar Dec 21 '18 17:12 cemremengu

Hi @cemremengu. You can use @json type field in a model. It uses sanitize function for unsafe data. https://github.com/Nozbe/WatermelonDB/blob/master/docs/Advanced/AdvancedFields.md#json

Is this what you look for?

rkrajewski avatar Dec 22 '18 13:12 rkrajewski

@cemremengu Closing this issue, since no reply. Let us know if this solves your problem

radex avatar Jan 10 '19 16:01 radex