Fetch multiple commits by SHA

I’m trying to work out how I can fetch multiple commit objects in a single request, given multiple SHAs. The REST API v3 only appears to support one per request, and I can’t even work out (am I going crazy?!) how to fetch a commit object by SHA with the GraphQL API!

You should be able to use the GraphQL feature called “aliases” to achieve this. It’s documented at https://graphql.org/learn/queries/#aliases.

See an example at https://stackoverflow.com/a/47888287.