Tub v0.7.1 Tub.Absinthe.Schema View Source

Generate Absinthe Schema

Usage:

name = "q1"
doc = "hello world"
  params = [
    {:f1, :string, nullable: false, doc: "arg1"},
    {:f1, :string, nullable: true, doc: "arg2"},
]
return = :list_blocks
meta = notation: "OcapApi.GQL.Notation.Bitcoin", resolver: "OcapApi.GQL.Bitcoin.Resolver"
Tub.Absinthe.Schema.gen(mod_name, [name, doc, params, return], meta)

Link to this section Summary

Link to this section Functions

Link to this function gen(mod_name, queries, meta, mod_doc \\ "") View Source