Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (18 sloc) 405 Bytes
package ravendb
// PatchRequest represents patch request
type PatchRequest struct {
Script string
Values map[string]interface{}
// Serialize serializes PatchRequest to json
func (r *PatchRequest) Serialize() map[string]interface{} {
values := r.Values
if values == nil {
values = map[string]interface{}{}
m := map[string]interface{}{
"Script": r.Script,
"Values": values,
return m
You can’t perform that action at this time.