RunWrite runs a query using the given connection but unlike Run automatically scans the result into a variable of type WriteResponse. This function should be used if you are running a write query (such as Insert, Update, TableCreate, etc...).

If an error occurs when running the write query the first error is returned.

res, err := r.DB("database").Table("table").Insert(doc).RunWrite(sess)

RunWrite is referenced in 57 repositories