in sobject/collections/insert.go [15:32]
func (i *insert) callout(allOrNone bool, records []sobject.Inserter) ([]sobject.InsertValue, error) {
payload, err := i.payload(allOrNone, records)
if err != nil {
return nil, err
}
c := &collection{
method: http.MethodPost,
body: payload,
endpoint: endpoint,
contentType: jsonContentType,
}
var values []sobject.InsertValue
err = c.send(i.session, &values)
if err != nil {
return nil, err
}
return values, nil
}