Writer in Model to create objects #1263
Unanswered
andrepaulo-bit
asked this question in
Q&A
Replies: 1 comment
-
|
Inside your model class just use @writer decorator on your async function. In you async function you get the table by passing name and call create method on it, this create method has a comment object which you can use to set or assign values to each of the required field, as you can see in the code. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In: https://nozbe.github.io/WatermelonDB/Writers.html it says:
How can I create the writer to create an object?
Beta Was this translation helpful? Give feedback.
All reactions