Skip to content

List fields in the model #52

Answered by agordn52
andim27 asked this question in Ideas
May 29, 2023 · 3 comments · 2 replies
Discussion options

You must be logged in to vote

Hi @andim27,

Have you got an example?

At the moment, you can store Model's to a collection like:

User userOne = User();
userOne.addToCollection('key');

User userTwo = User();
userTwo.addToCollection('key');

await NyStorage.readCollection('key'); // [User, User]

Thanks,

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by andim27
Comment options

You must be logged in to vote
1 reply
@agordn52
Comment options

Comment options

You must be logged in to vote
1 reply
@agordn52
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants