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

Function getSchemaInput

graphql/admin/schema.go:97–107  ·  view source on GitHub ↗
(m schema.Mutation)

Source from the content-addressed store, hash-verified

95}
96
97func getSchemaInput(m schema.Mutation) (*updateGQLSchemaInput, error) {
98 inputArg := m.ArgValue(schema.InputArgName)
99 inputByts, err := json.Marshal(inputArg)
100 if err != nil {
101 return nil, schema.GQLWrapf(err, "couldn't get input argument")
102 }
103
104 var input updateGQLSchemaInput
105 err = json.Unmarshal(inputByts, &input)
106 return &input, schema.GQLWrapf(err, "couldn't get input argument")
107}

Callers 1

ResolveMethod · 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…