Skip to content

anyway to view produced request from fluent apI? #210

@TheBreadGuy

Description

@TheBreadGuy

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()
.WithPrimaryKey(inventoryItem.PartitionKey,inventoryItem.SortKey)
.On(x => x.Quantity).Increment(inventoryItem.Quantity)

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

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





Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestquestionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions