MCPcopy
hub / github.com/dgraph-io/dgraph / resolveIpWhitelisting

Function resolveIpWhitelisting

graphql/resolve/middlewares.go:132–137  ·  view source on GitHub ↗
(ctx context.Context, f schema.Field)

Source from the content-addressed store, hash-verified

130}
131
132func resolveIpWhitelisting(ctx context.Context, f schema.Field) *Resolved {
133 if _, err := x.HasWhitelistedIP(ctx); err != nil {
134 return EmptyResult(f, err)
135 }
136 return nil
137}
138
139// GuardianOfTheGalaxyAuthMW4Query blocks the resolution of resolverFunc if there is no Guardian
140// of Galaxy auth present in context, otherwise it lets the resolverFunc resolve the query.

Callers 2

IpWhitelistingMW4QueryFunction · 0.85

Calls 2

HasWhitelistedIPFunction · 0.92
EmptyResultFunction · 0.85

Tested by

no test coverage detected