From 85e22c45e4b7f148183fcf6ed803c19552aca45b Mon Sep 17 00:00:00 2001 From: Steven Wade Date: Fri, 1 Nov 2024 10:41:55 -0400 Subject: [PATCH] feat: comment on GQL inferring type --- pkg/graph/resolvers/plan_basics.resolvers.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/graph/resolvers/plan_basics.resolvers.go b/pkg/graph/resolvers/plan_basics.resolvers.go index c4f283ffd7..d08d268daa 100644 --- a/pkg/graph/resolvers/plan_basics.resolvers.go +++ b/pkg/graph/resolvers/plan_basics.resolvers.go @@ -36,6 +36,7 @@ func (r *mutationResolver) UpdatePlanBasics(ctx context.Context, id uuid.UUID, c // AdditionalModelCategories is the resolver for the additionalModelCategories field. func (r *planBasicsResolver) AdditionalModelCategories(ctx context.Context, obj *models.PlanBasics) ([]models.ModelCategory, error) { return obj.AdditionalModelCategories, nil + //Note: we still have to resolve this manually as GQL can't infer this. We'd have to write a plugin to handle this specifically // modelCategories := models.ConvertEnums[models.ModelCategory](obj.AdditionalModelCategories.StringArray) // return modelCategories, nil }