Add people node query support

Signed-off-by: gearnode <bryan@frimin.fr>
This commit is contained in:
gearnode
2025-01-31 08:13:02 -08:00
parent 14380aa635
commit 5291cdb3db
3 changed files with 67 additions and 0 deletions

View File

@@ -110,6 +110,13 @@ func (r *queryResolver) Node(ctx context.Context, id gid.GID) (types.Node, error
}
return types.NewOrganization(organization), nil
case coredata.PeopleEntityType:
people, err := r.svc.GetPeople(ctx, id)
if err != nil {
return nil, err
}
return types.NewPeople(people), nil
default:
}