Added UserOfPolicy to context

graph-rework-2
noah metz 2023-07-25 09:31:57 -06:00
parent 54e25ba602
commit 4e69ba19f6
1 changed files with 4 additions and 0 deletions

@ -215,6 +215,10 @@ func NewContext(db * badger.DB, log Logger) * Context {
if err != nil { if err != nil {
panic(err) panic(err)
} }
err = ctx.RegisterNodeType(NewNodeDef((*UserOfPolicy)(nil), LoadUserOfPolicy, GQLTypeSimpleNode.Type))
if err != nil {
panic(err)
}
ctx.AddGQLType(GQLTypeSignal.Type) ctx.AddGQLType(GQLTypeSignal.Type)