Add framework node query support

Signed-off-by: gearnode <bryan@frimin.fr>
This commit is contained in:
gearnode
2025-01-31 08:27:48 -08:00
parent 940bc597ea
commit c03be7636a
2 changed files with 27 additions and 0 deletions

View File

@@ -124,6 +124,13 @@ func (r *queryResolver) Node(ctx context.Context, id gid.GID) (types.Node, error
}
return types.NewVendor(vendor), nil
case coredata.FrameworkEntityType:
framework, err := r.svc.GetFramework(ctx, id)
if err != nil {
return nil, err
}
return types.NewFramework(framework), nil
default:
}