MCPcopy Create free account
hub / github.com/encoder-run/operator / _RepositoryEmbeddings

Method _RepositoryEmbeddings

pkg/graph/generated.go:7957–8002  ·  view source on GitHub ↗
(ctx context.Context, sel ast.SelectionSet, obj *model.RepositoryEmbeddings)

Source from the content-addressed store, hash-verified

7955var repositoryEmbeddingsImplementors = []string{"RepositoryEmbeddings"}
7956
7957func (ec *executionContext) _RepositoryEmbeddings(ctx context.Context, sel ast.SelectionSet, obj *model.RepositoryEmbeddings) graphql.Marshaler {
7958 fields := graphql.CollectFields(ec.OperationContext, sel, repositoryEmbeddingsImplementors)
7959
7960 out := graphql.NewFieldSet(fields)
7961 deferred := make(map[string]*graphql.FieldSet)
7962 for i, field := range fields {
7963 switch field.Name {
7964 case "__typename":
7965 out.Values[i] = graphql.MarshalString("RepositoryEmbeddings")
7966 case "repositoryID":
7967 out.Values[i] = ec._RepositoryEmbeddings_repositoryID(ctx, field, obj)
7968 if out.Values[i] == graphql.Null {
7969 out.Invalids++
7970 }
7971 case "modelID":
7972 out.Values[i] = ec._RepositoryEmbeddings_modelID(ctx, field, obj)
7973 if out.Values[i] == graphql.Null {
7974 out.Invalids++
7975 }
7976 case "storageID":
7977 out.Values[i] = ec._RepositoryEmbeddings_storageID(ctx, field, obj)
7978 if out.Values[i] == graphql.Null {
7979 out.Invalids++
7980 }
7981 default:
7982 panic("unknown field " + strconv.Quote(field.Name))
7983 }
7984 }
7985 out.Dispatch(ctx)
7986 if out.Invalids > 0 {
7987 return graphql.Null
7988 }
7989
7990 atomic.AddInt32(&ec.deferred, int32(len(deferred)))
7991
7992 for label, dfs := range deferred {
7993 ec.processDeferredGroup(graphql.DeferredGroup{
7994 Label: label,
7995 Path: graphql.GetPath(ctx),
7996 FieldSet: dfs,
7997 Context: ctx,
7998 })
7999 }
8000
8001 return out
8002}
8003
8004var searchResultImplementors = []string{"SearchResult"}
8005

Tested by

no test coverage detected