Skip to content

Returning Tuple from creation processes is ambiguous #11

@pebeto

Description

@pebeto

When someone calls a creation process in the repository layer, the returning value is denoted by Tuple{Optional{<:Int64},UpsertResult}. It means that the user is going to see:

(1, DearDiary.Created())

It must be now a NamedTuple{Optional{<:Int64},UpsertResult}, making possible to annotate the returning values.

(id=1, DearDiary.Created())

NamedTuple can be unpacked normally as a Tuple.

x, y = (a=1, b=2)

So there's no breaking change exposed here.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions