Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request to add example on how to use the package #1

Open
richard457 opened this issue Jan 10, 2023 · 5 comments
Open

Request to add example on how to use the package #1

richard457 opened this issue Jan 10, 2023 · 5 comments

Comments

@richard457
Copy link

  • Hello, I think this package might be useful to me, would you mind adding example on how to use the package?
@richard457 richard457 changed the title Request to add example on how to use the plugin Request to add example on how to use the package Jan 10, 2023
@richard457
Copy link
Author

richard457 commented Mar 1, 2023

@davidlondono from the given example

@collection
class CrdtEntry extends ChangesyncBaseModel {}

ChangesyncBaseModel is not found, any help on that or we took a different approach? I lost the ability to send you messages on telegram and I am unable to contribute with no communication open.

@eelco2k
Copy link

eelco2k commented Oct 2, 2023

@richard457 it think you just need to use the same CrdtBaseModel

like so:

@collection
class CrdtEntry extends CrdtBaseModel {}

@eelco2k
Copy link

eelco2k commented Oct 18, 2023

@richard457 also check the "test" folder for integration examples.

[isar_crdt_test.dart]
[isar_extensions_test.dart]
[merge_test.dart]

should give you practical examples. just ignore the test() and expect() lines and the general Mocking stuff which is test suite related.

@richard457
Copy link
Author

@eelco2k thanks I will check it out, do you mind also if you can share the real example as well?

@meltzow
Copy link

meltzow commented Dec 1, 2023

hi @richard457 ... here is a working example https://github.com/meltzow/isar_crdt_example

I created it based on your github repo to understand how isar_crdt is working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants