(resolver QueryResolver)
| 168 | } |
| 169 | |
| 170 | func LoggingMWQuery(resolver QueryResolver) QueryResolver { |
| 171 | return QueryResolverFunc(func(ctx context.Context, query schema.Query) *Resolved { |
| 172 | glog.Infof("GraphQL admin query. Name = %v", query.Name()) |
| 173 | return resolver.Resolve(ctx, query) |
| 174 | }) |
| 175 | } |
| 176 | |
| 177 | // GuardianOfTheGalaxyAuthMW4Mutation blocks the resolution of resolverFunc if there is no Guardian |
| 178 | // of Galaxy auth present in context, otherwise it lets the resolverFunc resolve the mutation. |
nothing calls this directly
no test coverage detected