Add task node query support

Signed-off-by: gearnode <bryan@frimin.fr>
This commit is contained in:
gearnode
2025-01-31 08:53:01 -08:00
parent ddfd3928ac
commit cd6a388672
3 changed files with 102 additions and 0 deletions

View File

@@ -138,6 +138,13 @@ func (r *queryResolver) Node(ctx context.Context, id gid.GID) (types.Node, error
}
return types.NewControl(control), nil
case coredata.TaskEntityType:
task, err := r.svc.GetTask(ctx, id)
if err != nil {
return nil, err
}
return types.NewTask(task), nil
default:
}