In a talk for the London Elixir Meetup; I share how to make user defined GraphQL APIs by compiling modules at runtime.
I explain how to generate code with quote
and unquote
and compile it at runtime with Code.compile_quoted\1
. Then I apply this to Absinthe schemas.
I cover how to use multiple Absinthe schemas across different routes in Phoenix.
And how to pass information from Conn
params to Absinthe.
Finally, I talk about how to watch for changes and trigger recompilation only when necessary.
If you have any questions or comments please ask.