Get a random record?


#1

Is it (or will it be) possible to get a random record?

An example would be fetching a random open issue for a repository.


#2

There’s certainly nothing in the GraphQL spec that would forbid us from doing this, though I’d have to ask: why?


#3

I’m building a dashboard widget where I’d like to display a “Random Issue of the Day”.

I could just randomly pick an issue in my own code, but the GitHub APIs (old and new) are not friendly for fetching a number of issues at once.


#4

To me this seems more like an application feature than a platform one. I would say your application should implement this.