Versioned.Absinthe.version_object
You're seeing just the macro
version_object
, go back to Versioned.Absinthe module for more information.
Create a version wrapper object type, name
, wrapping a certain object
type, wrapped_name
.
The caller should use Absinthe.Schema.Notation
as here we return code
which invokes its object
macro.
The generated object will have the following fields:
:id
- primary key of the version record:is_deleted
- boolean indicating if the record was deleted as of this version:inserted_at
- UTC timestamp, indicating when the version was created- field specified by
wrapped_name
- The object as it was in this version