~edwargix/git.sr.ht

ad82b3b38cc2669e99a7ecc9401a896c767a6019 — Adnan Maolood 2 years ago 2a5f578
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) {