interface

优质
小牛编辑
129浏览
2023-12-01

GraphQL Interfaces are a sort of "parent object" from which other objects can "inherit" from. For example, Stars is considered an interface, because both Repository and Gist can be starred. An interface has its own list of named fields that are shared by implementing objects.

For more information, see the GraphQL spec.