Skip to content

Commit

Permalink
fix: The README example in Go-SDK uses inconsistent name. (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
balaji-dongare committed Apr 30, 2024
1 parent d27ef8f commit b6a8881
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ options := ClientWriteOptions{
// You can rely on the model id set in the configuration or override it for this specific request
AuthorizationModelId: openfga.PtrString("01GAHCE4YVKPQEKZQHT2R89MQV"),
}
data, err := fgaClient.Write(context.Background()).Body(requestBody).Options(options).Execute()
data, err := fgaClient.Write(context.Background()).Body(body).Options(options).Execute()
```

Convenience `WriteTuples` and `DeleteTuples` methods are also available.
Expand Down Expand Up @@ -541,7 +541,7 @@ options := ClientWriteOptions{
MaxPerChunk: 1, // Maximum number of requests to be sent in a transaction in a particular chunk
},
}
data, err := fgaClient.Write(context.Background()).Body(requestBody).Options(options).Execute()
data, err := fgaClient.Write(context.Background()).Body(body).Options(options).Execute()

// data.Writes = [{
// TupleKey: { User, Relation, Object },
Expand Down

0 comments on commit b6a8881

Please sign in to comment.