api/server: Register @private directive
1 files changed, 1 insertions(+), 0 deletions(-) M api/server.go
M api/server.go => api/server.go +1 -0
@@ 20,6 20,7 @@ func main() { appConfig := config.LoadConfig(":5101") gqlConfig := api.Config{Resolvers: &graph.Resolver{}} gqlConfig.Directives.Private = server.Private gqlConfig.Directives.Access = func(ctx context.Context, obj interface{}, next graphql.Resolver, scope model.AccessScope, kind model.AccessKind) (interface{}, error) {