Skip to content

Commit

Permalink
Fixes in docs (#234)
Browse files Browse the repository at this point in the history
  • Loading branch information
firenero authored Apr 27, 2024
1 parent a3c0560 commit b2f487e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions website/docs/dev_guide/high_level/write.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ It might be helpful if you want to know the item's state before or after the sav
var item = await ddbContext.PutItem()
.WithItem(new UserEntity("John", "Doe"))
.WithReturnValues(ReturnValues.AllOld)
.ToEntityAsync();
.ToItemAsync();
```

## UpdateItem
Expand Down Expand Up @@ -63,7 +63,7 @@ var oldValues = await ddbContext.UpdateItem<UserEntity>()
.WithPrimaryKey("partitionKey", "sortKey")
.On(x => x.FirstName).Assign("John")
.WithReturnValues(ReturnValues.UpdatedOld)
.ToEntityAsync();
.ToItemAsync();
```

## DeleteItem
Expand Down
4 changes: 2 additions & 2 deletions website/docs/dev_guide/low-level.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ title: Low-Level API
slug: ../dev-guide/low-level
---

**EfficientDynamoDb** provides access to DynamoDb HTTP API through `DynamoDbLowLevelContext` class, which can be accessed from `DynamoDbContext.LowContext` property.
**EfficientDynamoDb** provides access to DynamoDb HTTP API through `DynamoDbLowLevelContext` class, which can be accessed from `DynamoDbContext.LowLevel` property.

All low-level operations accept a request object as input and return a single response:

```csharp title="GetItem Request"
var response = await context.LowContext.GetItemAsync(new GetItemRequest
var response = await context.LowLevel.GetItemAsync(new GetItemRequest
{
TableName = "users",
Key = new PrimaryKey("partitionKey", "sortKey")
Expand Down

0 comments on commit b2f487e

Please sign in to comment.