GraphQL - Get Mutual Friends

How would I get mutual friends using a GraphQL API?

I can find a lot of resources on how to do this in SQL or Cypher, but not GraphQL.

We could use Hasura in this example, or any GraphQL API.


type Person {
  id: ID!
  name: String!
  friends: [Person]

We have two people with ids 01 and 02.

What would the GraphQL for this be? Is it possible without under-the-hood functionality or child / nested filters?

How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum