25 lines
869 B
Markdown
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 -->
|