(dg graphql.DeferredGroup)
| 863 | } |
| 864 | |
| 865 | func (ec *executionContext) processDeferredGroup(dg graphql.DeferredGroup) { |
| 866 | atomic.AddInt32(&ec.pendingDeferred, 1) |
| 867 | go func() { |
| 868 | ctx := graphql.WithFreshResponseContext(dg.Context) |
| 869 | dg.FieldSet.Dispatch(ctx) |
| 870 | ds := graphql.DeferredResult{ |
| 871 | Path: dg.Path, |
| 872 | Label: dg.Label, |
| 873 | Result: dg.FieldSet, |
| 874 | Errors: graphql.GetErrors(ctx), |
| 875 | } |
| 876 | // null fields should bubble up |
| 877 | if dg.FieldSet.Invalids > 0 { |
| 878 | ds.Result = graphql.Null |
| 879 | } |
| 880 | ec.deferredResults <- ds |
| 881 | }() |
| 882 | } |
| 883 | |
| 884 | func (ec *executionContext) introspectSchema() (*introspection.Schema, error) { |
| 885 | if ec.DisableIntrospection { |
no outgoing calls
no test coverage detected