MCPcopy Create free account
hub / github.com/dgraph-io/dgraph / getAddNamespaceInput

Function getAddNamespaceInput

graphql/admin/namespace.go:78–88  ·  view source on GitHub ↗
(m schema.Mutation)

Source from the content-addressed store, hash-verified

76}
77
78func getAddNamespaceInput(m schema.Mutation) (*addNamespaceInput, error) {
79 inputArg := m.ArgValue(schema.InputArgName)
80 inputByts, err := json.Marshal(inputArg)
81 if err != nil {
82 return nil, schema.GQLWrapf(err, "couldn't get input argument")
83 }
84
85 var input addNamespaceInput
86 err = json.Unmarshal(inputByts, &input)
87 return &input, schema.GQLWrapf(err, "couldn't get input argument")
88}
89
90func getDeleteNamespaceInput(m schema.Mutation) (*deleteNamespaceInput, error) {
91 inputArg := m.ArgValue(schema.InputArgName)

Callers 1

resolveAddNamespaceFunction · 0.85

Calls 2

GQLWrapfFunction · 0.92
ArgValueMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…