Skip to content

ignore model property while saving record in document db/cosmos dbΒ #122

Closed
@dixitprashant444

Description

@dixitprashant444

I have a class:
public class Job
{
private String id;
private String type;
private boolean history;
}
I want to ignore "history" property while saving the record in collection.
I tried @JsonIgnore but this does not work. I can see "history": false in saved record inside document db.
I do not want "history" attribute inside my saved record/document.
We have @DynamoDBIgnore for Amazon dynamo db. Can you please suggest the work around for your SDK?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions