(dg graphql.DeferredGroup)
| 1861 | } |
| 1862 | |
| 1863 | func (ec *executionContext) processDeferredGroup(dg graphql.DeferredGroup) { |
| 1864 | atomic.AddInt32(&ec.pendingDeferred, 1) |
| 1865 | go func() { |
| 1866 | ctx := graphql.WithFreshResponseContext(dg.Context) |
| 1867 | dg.FieldSet.Dispatch(ctx) |
| 1868 | ds := graphql.DeferredResult{ |
| 1869 | Path: dg.Path, |
| 1870 | Label: dg.Label, |
| 1871 | Result: dg.FieldSet, |
| 1872 | Errors: graphql.GetErrors(ctx), |
| 1873 | } |
| 1874 | // null fields should bubble up |
| 1875 | if dg.FieldSet.Invalids > 0 { |
| 1876 | ds.Result = graphql.Null |
| 1877 | } |
| 1878 | ec.deferredResults <- ds |
| 1879 | }() |
| 1880 | } |
| 1881 | |
| 1882 | func (ec *executionContext) introspectSchema() (*introspection.Schema, error) { |
| 1883 | if ec.DisableIntrospection { |
no outgoing calls
no test coverage detected