Thanks! Use the 1.7-issue
branch which disables certain validations, otherwise the project doesn’t compile. Then in iex -S mix
do:
defmodule Foo do
use Absinthe.Schema.Notation
object :user do
field :foo, :string
end
end
You’ll get some debug output from an IO.inspect
function I’ve added here: https://github.com/absinthe-graphql/absinthe/blob/1.7-issue/lib/absinthe/schema/notation/writer.ex#L75
If you mess with that file you’ll run into Bug #1 we’ve actually had a while, where editing the Writer module file requires rm -rf _build
or you get a compilation error for some reason.
The new issue however is that if you look at the debug output, the definitions list is empty. “there should be stuff but there isn’t stuff” is one of the less easy things to debug I realize. You can find the first usage of that module attribute here: https://github.com/absinthe-graphql/absinthe/blob/1.7-issue/lib/absinthe/schema/notation.ex#L25