WatermelonDB
WatermelonDB copied to clipboard
Storing dynamic data
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.
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?
@cemremengu Closing this issue, since no reply. Let us know if this solves your problem