[day-03] create schema to aggregate root fields
Expose root query in graphql schema.
This commit is contained in:
parent
b7cbcbd51f
commit
1380b8b2e4
9
lib/wabanex_web/schema.ex
Normal file
9
lib/wabanex_web/schema.ex
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
defmodule WabanexWeb.Schema do
|
||||||
|
use Absinthe.Schema
|
||||||
|
|
||||||
|
import_types WabanexWeb.Schema.Types.Root
|
||||||
|
|
||||||
|
query do
|
||||||
|
import_fields :root_query
|
||||||
|
end
|
||||||
|
end
|
Loading…
x
Reference in New Issue
Block a user