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

Function IsGqlErrorList

x/x.go:206–209  ·  view source on GitHub ↗

IsGqlErrorList tells whether the given err is a list of GraphQL errors.

(err error)

Source from the content-addressed store, hash-verified

204
205// IsGqlErrorList tells whether the given err is a list of GraphQL errors.
206func IsGqlErrorList(err error) bool {
207 _, ok := err.(GqlErrorList)
208 return ok
209}
210
211func (gqlErr *GqlError) Error() string {
212 var buf bytes.Buffer

Callers 6

doQueryMethod · 0.92
processQueryFunction · 0.92
ToJsonFunction · 0.92
ExecuteMethod · 0.92
rewriteAndExecuteMethod · 0.92
rewriteAndExecuteMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected