Skip to content

Commit

Permalink
fix bulk insert example
Browse files Browse the repository at this point in the history
  • Loading branch information
philkra committed Nov 24, 2023
1 parent 94775ea commit 5f649d9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion 040-SDK/102-create.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -284,10 +284,11 @@ users = xata.records().bulk_insert("Users", {

```go
client, _ := xata.NewRecordsClient()
users, _ := client.BulkInsert(context.TODO(), xata.BulkInsertRecordRequest{
users, _ := client..BulkInsert(context.TODO(), xata.BulkInsertRecordRequest{
RecordRequest: xata.RecordRequest{
TableName: "Users",
},
Columns: []string{"name"},
Records: []map[string]*xata.DataInputRecordValue{
{
"email": xata.ValueFromString("[email protected]"),
Expand Down

0 comments on commit 5f649d9

Please sign in to comment.