Skip to content

[Feature] Allow specifying the return type on Update #343

Closed
@jebbench

Description

@jebbench

When you pass the return new/old arguments to the updateDocument(s) method it will cast the result to the same type as the update argument.

I usually use a map to perform the updates as I don't want to provide all of the entities properties but I would like to receive the updated entity back cast to it's type.

Is it possible to add a third argument to the update methods to specify the expected return type?
It would probably make sense to add the same argument to other methods that return the same type they're given such as insert but these aren't currently an issue for me.

Metadata

Metadata

Assignees

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