diff --git a/context.go b/context.go index 668315a..5512e69 100644 --- a/context.go +++ b/context.go @@ -215,6 +215,10 @@ func NewContext(db * badger.DB, log Logger) * Context { if err != nil { panic(err) } + err = ctx.RegisterNodeType(NewNodeDef((*UserOfPolicy)(nil), LoadUserOfPolicy, GQLTypeSimpleNode.Type)) + if err != nil { + panic(err) + } ctx.AddGQLType(GQLTypeSignal.Type)