public IObservable <Unit> Add(IEnumerable <T> items)
 {
     // Doesn't work offline. Need offline solution.
     return(_baseQuery
            .PatchAsync(items.ToDictionary(x => x.Id = FirebaseKeyGenerator.Next()))
            .ToObservable()
            .SelectMany(_realtimeDb.PullAsync().ToObservable()));
 }
Example #2
0
 /// <inheritdoc/>
 public IObservable <Unit> Add(IEnumerable <T> items)
 {
     return(_childQuery
            .PatchAsync(items.ToDictionary(_ => FirebaseKeyGenerator.Next()))
            .ToObservable());
 }