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

Method NullResponse

graphql/schema/wrappers.go:207–207  ·  view source on GitHub ↗

NullResponse returns the bytes representing a JSON object to be used for setting the Data field of a Resolved, when this field resolves to a NullValue. * If this field is a list field then it returns []byte(`{"fieldAlias":[]}`). * If it is nullable, it returns []byte(`{"fieldAlias":null}`). * Otherw

()

Source from the content-addressed store, hash-verified

205 // * Otherwise, this field is non-nullable and so it will return a nil slice to indicate that.
206 // This is useful only for top-level fields like a query or mutation.
207 NullResponse() []byte
208 // CompleteAlias applies GraphQL alias completion for field to the input buffer buf.
209 CompleteAlias(buf *bytes.Buffer)
210 // GetAuthMeta returns the Dgraph.Authorization meta information stored in schema

Callers 6

rewriteAndExecuteMethod · 0.65
rewriteAndExecuteMethod · 0.65
EmptyResultFunction · 0.65
rewriteAndExecuteMethod · 0.65
NullResponseMethod · 0.65
NullResponseMethod · 0.65

Implementers 1

fieldgraphql/schema/wrappers.go

Calls

no outgoing calls

Tested by

no test coverage detected