Absinthe Utils
View SourceCollection of utilities for absinthe.
Installation
Available in Hex, the package can be installed
by adding absinthe_utils to your list of dependencies in mix.exs:
def deps do
[
# Check the releases page for the desired version (and use sigils accordingly, ex: "~>").
{:absinthe_utils, ">= 0.0.0"}
]
endDocumentation can be found in HexDocs.
Main Features
Middlewares:
AbsintheUtils.Middleware.ArgLoader: Middleware for loading entities infieldarguments.AbsintheUtils.Middleware.DeprecatedArgs: Middleware for handling deprecated or renamedfieldarguments (arg).AbsintheUtils.Middleware.MutuallyExclusiveInputs: Absinthe middleware for validating mutually exclusive input arguments.
Scalars:
AbsintheUtils.Scalars.JSON: JSON scalar.AbsintheUtils.Scalars.UUID: UUID scalar.AbsintheUtils.Scalars.StrictNaiveDateTime: NaiveDatetime that does not accept ISO8601 with offset.
Types:
AbsintheUtils.Types.DateFilterTypes: Dategte/ltefilters.AbsintheUtils.Types.PaginationTypes: Pagination params and details.
Helpers and utility functions:
AbsintheUtils.Helpers.Sorting: Sort alike utils for batch handling.AbsintheUtils.Helpers.Errors: Helper to put error results in absinthe resolutions.