You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using IAmazonDynamoDB.QueryAsync(request) to query and filter on an index.
Now, in trying to cast the result to my model type, I'm doing the following:
var item = response.Items.First(); // I have the required checks to make sure this is valid
_logger.LogInformation(JsonSerializer.Serialize(item));
var itemAsDocument = Document.FromAttributeMap(item);
_logger.LogInformation(itemAsDocument.ToJason());
The first log comes out exactly as I would except with all the data filled in and correct.
The second log shows an object with all of it's properties as empty objects:
{
"endDate": {},
// ETC....
}
I have spent now numerous hours searching and prompting AI for why the document serializaion isn't working propery to no avail. Any guidance would be appreciated. Thank you!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using
IAmazonDynamoDB.QueryAsync(request)
to query and filter on an index.Now, in trying to cast the result to my model type, I'm doing the following:
The first log comes out exactly as I would except with all the data filled in and correct.
The second log shows an object with all of it's properties as empty objects:
I have spent now numerous hours searching and prompting AI for why the document serializaion isn't working propery to no avail. Any guidance would be appreciated. Thank you!
Beta Was this translation helpful? Give feedback.
All reactions