AbsintheGenerator.Schema (absinthe_generator v0.1.1) View Source

We can utilize this module to generate resolver files which are then used in the mutations/queries/subscriptions

Definitions

  • :app_name - Required. Application name you're generating the code under

  • :moduledoc - Moduledoc message can be injected into the resulting output code

  • :queries - List of query namespaces The default value is [].

  • :mutations - List of mutation namespaces The default value is [].

  • :subscriptions - List of subscription namespaces The default value is [].

  • :types - List of types The default value is [].

  • :data_sources - List of %AbsintheGenerator.Schema.DataSource{} The default value is [].

  • :pre_middleware - List of %AbsintheGenerator.Schema.Middleware{} The default value is [].

  • :post_middleware - List of %AbsintheGenerator.Schema.Middleware{} The default value is [].

Link to this section Summary

Link to this section Types

Specs

t() :: %AbsintheGenerator.Schema{
  app_name: String.t(),
  data_sources: [AbsintheGenerator.Schema.DataSource.t()],
  moduledoc: term(),
  mutations: [String.t()],
  post_middleware: [String.t()],
  pre_middleware: [String.t()],
  queries: [String.t()],
  subscriptions: [String.t()],
  types: [String.t()]
}

Link to this section Functions