(t *testing.T, sch string)
| 47 | } |
| 48 | |
| 49 | func LoadSchemaFromString(t *testing.T, sch string) schema.Schema { |
| 50 | handler, err := schema.NewHandler(sch, false) |
| 51 | requireNoGQLErrors(t, err) |
| 52 | |
| 53 | schema := LoadSchema(t, handler.GQLSchema()) |
| 54 | schema.SetMeta(handler.MetaInfo()) |
| 55 | |
| 56 | return schema |
| 57 | } |
| 58 | |
| 59 | // GetMutation gets a single schema.Mutation from a schema.Operation. |
| 60 | // It will fail if op is not a mutation or there's more than one mutation in |