1 // Code generated by github.com/99designs/gqlgen, DO NOT EDIT. 2 3 package followschema 4 5 import ( 6 "context" 7 8 "github.com/99designs/gqlgen/graphql" 9 "github.com/vektah/gqlparser/v2/ast" 10 ) 11 12 // region ************************** generated!.gotpl ************************** 13 14 // endregion ************************** generated!.gotpl ************************** 15 16 // region ***************************** args.gotpl ***************************** 17 18 // endregion ***************************** args.gotpl ***************************** 19 20 // region ************************** directives.gotpl ************************** 21 22 // endregion ************************** directives.gotpl ************************** 23 24 // region **************************** field.gotpl ***************************** 25 26 // endregion **************************** field.gotpl ***************************** 27 28 // region **************************** input.gotpl ***************************** 29 30 // endregion **************************** input.gotpl ***************************** 31 32 // region ************************** interface.gotpl *************************** 33 34 // endregion ************************** interface.gotpl *************************** 35 36 // region **************************** object.gotpl **************************** 37 38 // endregion **************************** object.gotpl **************************** 39 40 // region ***************************** type.gotpl ***************************** 41 42 func (ec *executionContext) unmarshalNFallbackToStringEncoding2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐFallbackToStringEncoding(ctx context.Context, v interface{}) (FallbackToStringEncoding, error) { 43 tmp, err := graphql.UnmarshalString(v) 44 res := FallbackToStringEncoding(tmp) 45 return res, graphql.ErrorOnPath(ctx, err) 46 } 47 48 func (ec *executionContext) marshalNFallbackToStringEncoding2githubᚗcomᚋ99designsᚋgqlgenᚋcodegenᚋtestserverᚋfollowschemaᚐFallbackToStringEncoding(ctx context.Context, sel ast.SelectionSet, v FallbackToStringEncoding) graphql.Marshaler { 49 res := graphql.MarshalString(string(v)) 50 if res == graphql.Null { 51 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 52 ec.Errorf(ctx, "the requested element is null which the schema does not allow") 53 } 54 } 55 return res 56 } 57 58 // endregion ***************************** type.gotpl ***************************** 59