mozilla-frontend-infra/bugzilla-graphql-gateway

Query bug's comments

Closed this issue · 3 comments

@helfi92 @eliperelman Can we add a way to get bug's first comment? In the bugzilla REST API, bug's comment is located on a different endpoint from the bug, for bug it is /rest/bug/(bug_id), for comment /rest/bug/(bug_id)/comment.

And how are we going to do it? Will it be a separate query / a field in the bug/bugs query?

Yes, this would require adding a query for comments in the gateway. I'll try and send a PR for this on Monday so that you can use it. We can make it a separate query so that we don't end up doing an extra 50 calls in the backend everytime we load a project.

This is done now, right?

Indeed.