(ctx context.Context, field graphql.CollectedField)
| 1846 | } |
| 1847 | |
| 1848 | func (ec *executionContext) _Mutation_addModelDeployment(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { |
| 1849 | fc, err := ec.fieldContext_Mutation_addModelDeployment(ctx, field) |
| 1850 | if err != nil { |
| 1851 | return graphql.Null |
| 1852 | } |
| 1853 | ctx = graphql.WithFieldContext(ctx, fc) |
| 1854 | defer func() { |
| 1855 | if r := recover(); r != nil { |
| 1856 | ec.Error(ctx, ec.Recover(ctx, r)) |
| 1857 | ret = graphql.Null |
| 1858 | } |
| 1859 | }() |
| 1860 | resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { |
| 1861 | ctx = rctx // use context from middleware stack in children |
| 1862 | return ec.resolvers.Mutation().AddModelDeployment(rctx, fc.Args["input"].(model.AddModelDeploymentInput)) |
| 1863 | }) |
| 1864 | if err != nil { |
| 1865 | ec.Error(ctx, err) |
| 1866 | return graphql.Null |
| 1867 | } |
| 1868 | if resTmp == nil { |
| 1869 | if !graphql.HasFieldError(ctx, fc) { |
| 1870 | ec.Errorf(ctx, "must not be null") |
| 1871 | } |
| 1872 | return graphql.Null |
| 1873 | } |
| 1874 | res := resTmp.(*model.Model) |
| 1875 | fc.Result = res |
| 1876 | return ec.marshalNModel2ᚖgithubᚗcomᚋencoderᚑrunᚋoperatorᚋpkgᚋgraphᚋmodelᚐModel(ctx, field.Selections, res) |
| 1877 | } |
| 1878 | |
| 1879 | func (ec *executionContext) fieldContext_Mutation_addModelDeployment(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { |
| 1880 | fc = &graphql.FieldContext{ |
no test coverage detected