public Task Update(T model, string field, object?value) => GetDocument(model).UpdateAsync(FieldPath.GetMappingName <T>(field), value ?? FieldValue.Delete);
public void Update(T model, string field, object?value, ITransaction transaction) { transaction.Update(GetDocument(model), FieldPath.GetMappingName <T>(field), value ?? FieldValue.Delete); }
public IObservable <ICollection <Bike> > ObserveBikesFromStation(Station station) => ObservableBikes(Bikes(station.CommunityId) .WhereEqualsTo(FieldPath.GetMappingName <Bike>(nameof(Bike.StationId)), station.Id), station.CommunityId);