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

save data list in realm #59

Open
kavoskhajavi opened this issue Dec 9, 2018 · 1 comment
Open

save data list in realm #59

kavoskhajavi opened this issue Dec 9, 2018 · 1 comment

Comments

@kavoskhajavi
Copy link

kavoskhajavi commented Dec 9, 2018

im using database realm
1- using Method save1 in class Repository
2- error : Argument type '[T]' does not conform to expected type 'RealmRepresentabl

func save1(entity: [T]) -> Observable<Void> {
      return Observable.deferred { 
       return self.realm.rx.save(entity: entity, update: true)
      }.subscribeOn(scheduler)
  }
@sergdort
Copy link
Owner

Hi, @kavoskhajavi make sure your T is RealmRepresentable

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

2 participants