Versioned.Absinthe (Versioned v0.1.0) View Source
Helpers for Absinthe schemas.
Link to this section Summary
Functions
Create a version wrapper object type, name
, wrapping a certain object
type, wrapped_name
.
Link to this section Functions
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