(m schema.Mutation)
| 95 | } |
| 96 | |
| 97 | func 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 | } |