1
0
mirror of synced 2025-12-19 18:10:59 -05:00
Files
docs/content/graphql/reference/interfaces.md

25 lines
869 B
Markdown

---
title: Interfaces
intro: Interfaces serve as parent objects from which other objects can inherit.
redirect_from:
- /v4/interface
- /v4/reference/interface
versions:
fpt: '*'
ghec: '*'
ghes: '*'
topics:
- API
autogenerated: graphql
---
## About interfaces
[Interfaces](https://spec.graphql.org/June2018/#sec-Interfaces) serve as parent objects from which other objects can inherit.
For example, [`Lockable`](/graphql/reference/interfaces#lockable) is an interface because both [`Issue`](/graphql/reference/objects#issue) and [`PullRequest`](/graphql/reference/objects#pullrequest) objects can be locked. An interface has its own list of named fields that are shared by implementing objects.
For more information, see [AUTOTITLE](/graphql/guides/introduction-to-graphql#implementation).
<!-- Content after this section is automatically generated -->