Question from the GraphQL test

What are the differences between interfaces and unions in GraphQL?

Easy
{
  characters {
    ... on Human {
      name
      height
    }
    ... on Droid {
      name
      primaryFunction
    }
  }
}

Dans cette requête, comment les fragments en ligne fonctionnent-ils avec les interfaces ?

Author: AnasStatus: PublishedQuestion passed 7 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!