From 4e69ba19f641f860720559ceda101af664fb26b4 Mon Sep 17 00:00:00 2001 From: Noah Metz Date: Tue, 25 Jul 2023 09:31:57 -0600 Subject: [PATCH] Added UserOfPolicy to context --- context.go | 4 ++++ 1 file changed, 4 insertions(+) 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)