public async Task UpdateAsync(string id, IUpdateDefinition updateDefinition) { var command = CommandBuilder.BuildUpdate(collectionName, id, updateDefinition.Render()); var rawResult = await sender.SendAsync(command).ConfigureAwait(false); ResultParser.Parse(rawResult); }
public static IUpdateDefinition Unset(this IUpdateDefinition source, string field) => new CombineUpdateDefinition(source, new UnsetUpdateDefinition(field));
public static IUpdateDefinition Set(this IUpdateDefinition source, string field, string value) => new CombineUpdateDefinition(source, new SetUpdateDefinition(field, value));