How to declare :map in Absinthe.Schema.Notation.object/3

Solution - Scalar Recipes · absinthe-graphql/absinthe Wiki · GitHub

Usage

defmodule MyApp.Schema.Types do
  use Absinthe.Schema.Notation
  ...
  import_types(MyApp.Schema.Types.Custom.JSON)

  @desc "Message for sms and ussd"
  object :message do
    field(:id, non_null(:string), description: "Hardcoded id")
    field(:text, non_null(:string), description: "Default text")
    field(:domain, :string)
    field(:locales, :json)
  end
end

easy :sunglasses: