EfficientDynamoDb icon indicating copy to clipboard operation
EfficientDynamoDb copied to clipboard

anyway to view produced request from fluent apI?

Open TheBreadGuy opened this issue 1 year ago • 5 comments

is there any way to see what is being produced?

I tried mess about with IUpdateEntityRequestBuilder but could not work it out.

The main reason I have three requests below but first two fail if does not exist as field does not exist. wish to debug but can't see if something I'm doing or if there would be another way i could be make the fluent api to produce different request with SET / ADD, But at moment, don't know how see what my changes make will effect it.

UpdateItem<InventoryItem>() .WithPrimaryKey(inventoryItem.PartitionKey,inventoryItem.SortKey) .On(x => x.Quantity).Increment(inventoryItem.Quantity)

UpdateItem<InventoryItem>() .WithPrimaryKey(inventoryItem.PartitionKey,inventoryItem.SortKey) .On(x => x.Quantity).AssignSum(x => x.Quantity, inventoryItem.Quantity)

UpdateItem<InventoryItem>() .WithPrimaryKey(inventoryItem.PartitionKey,inventoryItem.SortKey) .On(x => x.Quantity).Assign(x => x.Quantity, inventoryItem.Quantity) .WithReturnValues(ReturnValues.AllNew)





TheBreadGuy avatar May 26 '23 16:05 TheBreadGuy