patchRequests.Add(new PatchRequest { Type = PatchCommandType.Add,Set,UnSet,Insert etc... Name = propertyName; Value = *** });
session.Advanced.Patch(call, c => c.Comments,
comments => comments.Add("This is important stuff!"));
Hibernating Rhinos Ltd
Oren Eini l CEO l Mobile: + 972-52-548-6969
Office: +972-4-622-7811 l Fax: +972-153-4-622-7811
--
You received this message because you are subscribed to the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Session.Advanced.Defer(new PatchRequest { Script = $"delete this.{fieldName}" // Unset equivalent // Or
Script = $"this.{fieldName} = {value}" // Set equivalent // Or
Script = $"insert(this.{fieldName}, {value})" // Insert equivalent // Or
Script = $"add(this.{fieldName}, {value})" // Insert equivalent // Or
Hibernating Rhinos Ltd
Oren Eini l CEO l Mobile: + 972-52-548-6969
Office: +972-4-622-7811 l Fax: +972-153-4-622-7811
Hibernating Rhinos Ltd
Oren Eini l CEO l Mobile: + 972-52-548-6969
Office: +972-4-622-7811 l Fax: +972-153-4-622-7811
var script = $"this.{propertyName} = args.data.item"; patchRequests.Add(
new PatchRequest { Script = script, Values = { { "data", new {item = value} } // Note : value could be complex type } });
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.
Hibernating Rhinos Ltd 
Grisha Kotler l RavenDB Core Team Developer l Mobile: +972-54-586-8647
Office: +972-4-622-7811 l Fax: +972-153-4-622-7811
RavenDB paving the way to "Data Made Simple" http://ravendb.net/
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.