2016-11-26 01:38:32 +00:00
# GraphQL Schema
```graphql
2018-08-04 19:04:19 +00:00
"""
[Aliases ](https://musicbrainz.org/doc/Aliases ) are variant names
that are mostly used as search help: if a search matches an entity’ s alias, the
entity will be given as a result – even if the actual name wouldn’ t be.
"""
2016-11-26 01:38:32 +00:00
type Alias {
2018-08-04 19:04:19 +00:00
"""The aliased name of the entity."""
2016-11-26 01:38:32 +00:00
name: String
2018-08-04 19:04:19 +00:00
"""
The string to use for the purpose of ordering by name (for
example, by moving articles like ‘ the’ to the end or a person’ s last name to
the front).
"""
2016-11-26 01:38:32 +00:00
sortName: String
2018-08-04 19:04:19 +00:00
"""
The locale (language and/or country) in which the alias is
used.
"""
2016-12-10 02:56:45 +00:00
locale: Locale
2016-11-26 01:38:32 +00:00
2018-08-04 19:04:19 +00:00
"""
Whether this is the main alias for the entity in the
specified locale (this could mean the most recent or the most common).
"""
2016-11-26 01:38:32 +00:00
primary: Boolean
2018-08-04 19:04:19 +00:00
"""
The type or purpose of the alias – whether it is a variant,
search hint, etc.
"""
2016-11-26 01:38:32 +00:00
type: String
2018-08-04 19:04:19 +00:00
"""
The MBID associated with the value of the `type`
field.
"""
2016-11-26 01:38:32 +00:00
typeID: MBID
}
2018-08-04 19:04:19 +00:00
"""
[Areas ](https://musicbrainz.org/doc/Area ) are geographic regions
or settlements (countries, cities, or the like).
"""
type Area implements Node & Entity {
"""The ID of an object"""
2016-11-26 01:38:32 +00:00
id: ID!
2018-08-04 19:04:19 +00:00
"""The MBID of the entity."""
2016-11-26 01:38:32 +00:00
mbid: MBID!
2018-08-04 19:04:19 +00:00
"""The official name of the entity."""
2016-11-26 01:38:32 +00:00
name: String
2018-08-04 19:04:19 +00:00
"""
The string to use for the purpose of ordering by name (for
example, by moving articles like ‘ the’ to the end or a person’ s last name to
the front).
"""
2016-11-26 01:38:32 +00:00
sortName: String
2018-08-04 19:04:19 +00:00
"""A comment used to help distinguish identically named entitites."""
2016-11-26 01:38:32 +00:00
disambiguation: String
2018-08-04 19:04:19 +00:00
"""
[Aliases ](https://musicbrainz.org/doc/Aliases ) are used to store
alternate names or misspellings.
"""
2016-11-28 13:49:04 +00:00
aliases: [Alias]
2018-08-04 19:04:19 +00:00
"""
[ISO 3166 codes ](https://en.wikipedia.org/wiki/ISO_3166 ) are
the codes assigned by ISO to countries and subdivisions.
"""
2017-11-23 20:43:40 +00:00
isoCodes(
2018-08-04 19:04:19 +00:00
"""
Specify the particular ISO standard codes to retrieve.
Available ISO standards are 3166-1, 3166-2, and 3166-3.
"""
2017-11-23 20:43:40 +00:00
standard: String = "3166-1"
): [String]
2016-11-26 01:38:32 +00:00
2018-08-04 19:04:19 +00:00
"""
The type of area (country, city, etc. – see the [possible
values](https://musicbrainz.org/doc/Area)).
"""
2017-11-04 22:32:05 +00:00
type: String
2018-08-04 19:04:19 +00:00
"""
The MBID associated with the value of the `type`
field.
"""
2017-11-04 22:32:05 +00:00
typeID: MBID
2018-08-04 19:04:19 +00:00
"""A list of artists linked to this entity."""
2016-11-26 01:38:32 +00:00
artists(after: String, first: Int): ArtistConnection
2018-08-04 19:04:19 +00:00
"""A list of events linked to this entity."""
2016-11-26 01:38:32 +00:00
events(after: String, first: Int): EventConnection
2018-08-04 19:04:19 +00:00
"""A list of labels linked to this entity."""
2016-11-26 01:38:32 +00:00
labels(after: String, first: Int): LabelConnection
2018-08-04 19:04:19 +00:00
"""A list of places linked to this entity."""
2016-11-26 01:38:32 +00:00
places(after: String, first: Int): PlaceConnection
2018-08-04 19:04:19 +00:00
"""A list of releases linked to this entity."""
2016-11-29 03:14:43 +00:00
releases(
2018-08-04 19:04:19 +00:00
"""Filter by one or more release group types."""
2016-11-29 03:14:43 +00:00
type: [ReleaseGroupType]
2018-08-04 19:04:19 +00:00
"""Filter by one or more release statuses."""
2016-11-29 03:14:43 +00:00
status: [ReleaseStatus]
2016-12-12 05:09:37 +00:00
after: String
first: Int
2016-11-29 03:14:43 +00:00
): ReleaseConnection
2016-11-28 13:49:04 +00:00
2018-08-04 19:04:19 +00:00
"""Relationships between this entity and other entitites."""
2016-11-28 13:49:04 +00:00
relationships: Relationships
2018-08-04 19:04:19 +00:00
"""A list of collections containing this entity."""
2016-12-12 08:55:15 +00:00
collections(after: String, first: Int): CollectionConnection
2018-08-04 19:04:19 +00:00
"""A list of tags linked to this entity."""
2016-11-28 13:49:04 +00:00
tags(after: String, first: Int): TagConnection
2016-11-26 01:38:32 +00:00
}
2018-08-04 19:04:19 +00:00
"""A connection to a list of items."""
2016-11-26 01:38:32 +00:00
type AreaConnection {
2018-08-04 19:04:19 +00:00
"""Information to aid in pagination."""
2016-11-26 01:38:32 +00:00
pageInfo: PageInfo!
2018-08-04 19:04:19 +00:00
"""A list of edges."""
2016-11-26 01:38:32 +00:00
edges: [AreaEdge]
2016-11-28 13:49:04 +00:00
2018-08-04 19:04:19 +00:00
"""
A list of nodes in the connection (without going through the
`edges` field).
"""
2017-10-07 02:43:15 +00:00
nodes: [Area]
2018-08-04 19:04:19 +00:00
"""
A count of the total number of items in this connection,
ignoring pagination.
"""
2016-11-28 13:49:04 +00:00
totalCount: Int
2016-11-26 01:38:32 +00:00
}
2018-08-04 19:04:19 +00:00
"""An edge in a connection."""
2016-11-26 01:38:32 +00:00
type AreaEdge {
2018-08-04 19:04:19 +00:00
"""The item at the end of the edge"""
2016-11-26 01:38:32 +00:00
node: Area
2018-08-04 19:04:19 +00:00
"""A cursor for use in pagination"""
2016-11-26 01:38:32 +00:00
cursor: String!
2016-11-28 14:44:00 +00:00
2018-08-04 19:04:19 +00:00
"""
The relevancy score (0– 100) assigned by the search engine, if
these results were found through a search.
"""
2016-11-28 14:44:00 +00:00
score: Int
2016-11-26 01:38:32 +00:00
}
2018-08-04 19:04:19 +00:00
"""
An [artist ](https://musicbrainz.org/doc/Artist ) is generally a
musician, group of musicians, or other music professional (like a producer or
engineer). Occasionally, it can also be a non-musical person (like a
photographer, an illustrator, or a poet whose writings are set to music), or
even a fictional character.
"""
type Artist implements Node & Entity {
"""The ID of an object"""
2016-11-26 01:38:32 +00:00
id: ID!
2018-08-04 19:04:19 +00:00
"""The MBID of the entity."""
2016-11-26 01:38:32 +00:00
mbid: MBID!
2018-08-04 19:04:19 +00:00
"""The official name of the entity."""
2016-11-26 01:38:32 +00:00
name: String
2018-08-04 19:04:19 +00:00
"""
The string to use for the purpose of ordering by name (for
example, by moving articles like ‘ the’ to the end or a person’ s last name to
the front).
"""
2016-11-26 01:38:32 +00:00
sortName: String
2018-08-04 19:04:19 +00:00
"""A comment used to help distinguish identically named entitites."""
2016-11-26 01:38:32 +00:00
disambiguation: String
2018-08-04 19:04:19 +00:00
"""
[Aliases ](https://musicbrainz.org/doc/Aliases ) are used to store
alternate names or misspellings.
"""
2016-11-26 01:38:32 +00:00
aliases: [Alias]
2018-08-04 19:04:19 +00:00
"""
The country with which an artist is primarily identified. It
is often, but not always, its birth/formation country.
"""
2016-11-26 01:38:32 +00:00
country: String
2018-08-04 19:04:19 +00:00
"""
The area with which an artist is primarily identified. It
is often, but not always, its birth/formation country.
"""
2016-11-26 01:38:32 +00:00
area: Area
2018-08-04 19:04:19 +00:00
"""
The area in which an artist began their career (or where
they were born, if the artist is a person).
"""
2016-11-26 01:38:32 +00:00
beginArea: Area
2018-08-04 19:04:19 +00:00
"""
The area in which an artist ended their career (or where
they died, if the artist is a person).
"""
2016-11-26 01:38:32 +00:00
endArea: Area
2018-08-04 19:04:19 +00:00
"""
The begin and end dates of the entity’ s existence. Its exact
meaning depends on the type of entity.
"""
2016-11-26 01:38:32 +00:00
lifeSpan: LifeSpan
2018-08-04 19:04:19 +00:00
"""
Whether a person or character identifies as male, female, or
neither. Groups do not have genders.
"""
2016-11-26 01:38:32 +00:00
gender: String
2018-08-04 19:04:19 +00:00
"""
The MBID associated with the value of the `gender`
field.
"""
2016-11-26 01:38:32 +00:00
genderID: MBID
2018-08-04 19:04:19 +00:00
"""Whether an artist is a person, a group, or something else."""
2016-11-26 01:38:32 +00:00
type: String
2018-08-04 19:04:19 +00:00
"""
The MBID associated with the value of the `type`
field.
"""
2016-11-26 01:38:32 +00:00
typeID: MBID
2018-08-04 19:04:19 +00:00
"""
List of [Interested Parties Information ](https://musicbrainz.org/doc/IPI )
(IPI) codes for the artist.
"""
2016-12-10 17:51:33 +00:00
ipis: [IPI]
2018-08-04 19:04:19 +00:00
"""
List of [International Standard Name Identifier ](https://musicbrainz.org/doc/ISNI )
(ISNI) codes for the artist.
"""
2016-12-10 17:51:33 +00:00
isnis: [ISNI]
2018-08-04 19:04:19 +00:00
"""A list of recordings linked to this entity."""
2016-11-26 01:38:32 +00:00
recordings(after: String, first: Int): RecordingConnection
2018-08-04 19:04:19 +00:00
"""A list of releases linked to this entity."""
2016-11-29 03:14:43 +00:00
releases(
2018-08-04 19:04:19 +00:00
"""Filter by one or more release group types."""
2016-11-29 03:14:43 +00:00
type: [ReleaseGroupType]
2018-08-04 19:04:19 +00:00
"""Filter by one or more release statuses."""
2016-11-29 03:14:43 +00:00
status: [ReleaseStatus]
2016-12-12 05:09:37 +00:00
after: String
first: Int
2016-11-29 03:14:43 +00:00
): ReleaseConnection
2016-11-26 01:38:32 +00:00
2018-08-04 19:04:19 +00:00
"""A list of release groups linked to this entity."""
2016-11-29 03:14:43 +00:00
releaseGroups(
2018-08-04 19:04:19 +00:00
"""Filter by one or more release group types."""
2016-11-29 03:14:43 +00:00
type: [ReleaseGroupType]
2016-12-12 05:09:37 +00:00
after: String
first: Int
2016-11-29 03:14:43 +00:00
): ReleaseGroupConnection
2016-11-26 01:38:32 +00:00
2018-08-04 19:04:19 +00:00
"""A list of works linked to this entity."""
2016-11-26 01:38:32 +00:00
works(after: String, first: Int): WorkConnection
2018-08-04 19:04:19 +00:00
"""Relationships between this entity and other entitites."""
2016-11-26 01:38:32 +00:00
relationships: Relationships
2016-11-28 13:49:04 +00:00
2018-08-04 19:04:19 +00:00
"""A list of collections containing this entity."""
2016-12-12 08:55:15 +00:00
collections(after: String, first: Int): CollectionConnection
2018-08-04 19:04:19 +00:00
"""The rating users have given to this entity."""
2016-12-14 04:50:38 +00:00
rating: Rating
2018-08-04 19:04:19 +00:00
"""A list of tags linked to this entity."""
2016-11-28 13:49:04 +00:00
tags(after: String, first: Int): TagConnection
2016-11-26 01:38:32 +00:00
}
2018-08-04 19:04:19 +00:00
"""A connection to a list of items."""
2016-11-26 01:38:32 +00:00
type ArtistConnection {
2018-08-04 19:04:19 +00:00
"""Information to aid in pagination."""
2016-11-26 01:38:32 +00:00
pageInfo: PageInfo!
2018-08-04 19:04:19 +00:00
"""A list of edges."""
2016-11-26 01:38:32 +00:00
edges: [ArtistEdge]
2016-11-28 13:49:04 +00:00
2018-08-04 19:04:19 +00:00
"""
A list of nodes in the connection (without going through the
`edges` field).
"""
2017-10-07 02:43:15 +00:00
nodes: [Artist]
2018-08-04 19:04:19 +00:00
"""
A count of the total number of items in this connection,
ignoring pagination.
"""
2016-11-28 13:49:04 +00:00
totalCount: Int
2016-11-26 01:38:32 +00:00
}
2018-08-04 19:04:19 +00:00
"""
[Artist credits ](https://musicbrainz.org/doc/Artist_Credits )
indicate who is the main credited artist (or artists) for releases, release
groups, tracks, and recordings, and how they are credited. They consist of
artists, with (optionally) their names as credited in the specific release,
track, etc., and join phrases between them.
"""
2016-11-26 01:38:32 +00:00
type ArtistCredit {
2018-08-04 19:04:19 +00:00
"""
The entity representing the artist referenced in the
credits.
"""
2016-11-26 01:38:32 +00:00
artist: Artist
2018-08-04 19:04:19 +00:00
"""
The name of the artist as credited in the specific release,
track, etc.
"""
2016-11-26 01:38:32 +00:00
name: String
2018-08-04 19:04:19 +00:00
"""
Join phrases might include words and/or punctuation to
separate artist names as they appear on the release, track, etc.
"""
2016-11-26 01:38:32 +00:00
joinPhrase: String
}
2018-08-04 19:04:19 +00:00
"""An edge in a connection."""
2016-11-26 01:38:32 +00:00
type ArtistEdge {
2018-08-04 19:04:19 +00:00
"""The item at the end of the edge"""
2016-11-26 01:38:32 +00:00
node: Artist
2018-08-04 19:04:19 +00:00
"""A cursor for use in pagination"""
2016-11-26 01:38:32 +00:00
cursor: String!
2016-11-28 14:44:00 +00:00
2018-08-04 19:04:19 +00:00
"""
The relevancy score (0– 100) assigned by the search engine, if
these results were found through a search.
"""
2016-11-28 14:44:00 +00:00
score: Int
2016-11-26 01:38:32 +00:00
}
2018-08-04 19:04:19 +00:00
"""
An [Amazon Standard Identification Number ](https://musicbrainz.org/doc/ASIN )
(ASIN) is a 10-character alphanumeric unique identifier assigned by Amazon.com
and its partners for product identification within the Amazon organization.
"""
2016-12-10 02:56:45 +00:00
scalar ASIN
2018-08-04 19:04:19 +00:00
"""
A query for all MusicBrainz entities directly linked to another
entity.
"""
2016-11-26 01:38:32 +00:00
type BrowseQuery {
2018-08-04 19:04:19 +00:00
"""Browse area entities linked to the given arguments."""
2016-11-28 13:49:04 +00:00
areas(
2018-08-04 19:04:19 +00:00
"""The MBID of a collection in which the entity is found."""
2016-11-28 13:49:04 +00:00
collection: MBID
2016-12-12 05:09:37 +00:00
after: String
first: Int
2016-11-28 13:49:04 +00:00
): AreaConnection
2018-08-04 19:04:19 +00:00
"""Browse artist entities linked to the given arguments."""
2016-11-26 01:38:32 +00:00
artists(
2018-08-04 19:04:19 +00:00
"""The MBID of an area to which the entity is linked."""
2016-11-26 01:38:32 +00:00
area: MBID
2018-08-04 19:04:19 +00:00
"""The MBID of a collection in which the entity is found."""
2016-11-28 13:49:04 +00:00
collection: MBID
2018-08-04 19:04:19 +00:00
"""The MBID of a recording to which the entity is linked."""
2016-11-26 01:38:32 +00:00
recording: MBID
2018-08-04 19:04:19 +00:00
"""The MBID of a release to which the entity is linked."""
2016-11-26 01:38:32 +00:00
release: MBID
2018-08-04 19:04:19 +00:00
"""The MBID of a release group to which the entity is linked."""
2016-11-26 01:38:32 +00:00
releaseGroup: MBID
2018-08-04 19:04:19 +00:00
"""The MBID of a work to which the entity is linked."""
2016-11-26 01:38:32 +00:00
work: MBID
2016-12-12 05:09:37 +00:00
after: String
first: Int
2016-11-26 01:38:32 +00:00
): ArtistConnection
2018-08-04 19:04:19 +00:00
"""Browse collection entities linked to the given arguments."""
2016-12-12 04:03:05 +00:00
collections(
2018-08-04 19:04:19 +00:00
"""The MBID of an area to which the entity is linked."""
2016-12-12 04:03:05 +00:00
area: MBID
2018-08-04 19:04:19 +00:00
"""The MBID of an artist to which the entity is linked."""
2016-12-12 04:03:05 +00:00
artist: MBID
2018-08-04 19:04:19 +00:00
"""The username of the editor who created the collection."""
2016-12-12 04:03:05 +00:00
editor: String
2018-08-04 19:04:19 +00:00
"""The MBID of an event to which the entity is linked."""
2016-12-12 04:03:05 +00:00
event: MBID
2018-08-04 19:04:19 +00:00
"""The MBID of a label to which the entity is linked."""
2016-12-12 04:03:05 +00:00
label: MBID
2018-08-04 19:04:19 +00:00
"""The MBID of a place to which the entity is linked."""
2016-12-12 04:03:05 +00:00
place: MBID
2018-08-04 19:04:19 +00:00
"""The MBID of a recording to which the entity is linked."""
2016-12-12 04:03:05 +00:00
recording: MBID
2018-08-04 19:04:19 +00:00
"""The MBID of a release to which the entity is linked."""
2016-12-12 04:03:05 +00:00
release: MBID
2018-08-04 19:04:19 +00:00
"""The MBID of a release group to which the entity is linked."""
2016-12-12 04:03:05 +00:00
releaseGroup: MBID
2018-08-04 19:04:19 +00:00
"""The MBID of a work to which the entity is linked."""
2016-12-12 04:03:05 +00:00
work: MBID
2016-12-12 05:09:37 +00:00
after: String
first: Int
2016-12-12 04:03:05 +00:00
): CollectionConnection
2018-08-04 19:04:19 +00:00
"""Browse event entities linked to the given arguments."""
2016-11-26 01:38:32 +00:00
events(
2018-08-04 19:04:19 +00:00
"""The MBID of an area to which the entity is linked."""
2016-11-26 01:38:32 +00:00
area: MBID
2018-08-04 19:04:19 +00:00
"""The MBID of an artist to which the entity is linked."""
2016-11-26 01:38:32 +00:00
artist: MBID
2018-08-04 19:04:19 +00:00
"""The MBID of a collection in which the entity is found."""
2016-11-28 13:49:04 +00:00
collection: MBID
2018-08-04 19:04:19 +00:00
"""The MBID of a place to which the entity is linked."""
2016-11-26 01:38:32 +00:00
place: MBID
2016-12-12 05:09:37 +00:00
after: String
first: Int
2016-11-26 01:38:32 +00:00
): EventConnection
2018-08-04 19:04:19 +00:00
"""Browse label entities linked to the given arguments."""
2016-11-26 01:38:32 +00:00
labels(
2018-08-04 19:04:19 +00:00
"""The MBID of an area to which the entity is linked."""
2016-11-26 01:38:32 +00:00
area: MBID
2018-08-04 19:04:19 +00:00
"""The MBID of a collection in which the entity is found."""
2016-11-28 13:49:04 +00:00
collection: MBID
2018-08-04 19:04:19 +00:00
"""The MBID of a release to which the entity is linked."""
2016-11-26 01:38:32 +00:00
release: MBID
2016-12-12 05:09:37 +00:00
after: String
first: Int
2016-11-26 01:38:32 +00:00
): LabelConnection
2018-08-04 19:04:19 +00:00
"""Browse place entities linked to the given arguments."""
2016-11-26 01:38:32 +00:00
places(
2018-08-04 19:04:19 +00:00
"""The MBID of an area to which the entity is linked."""
2016-11-26 01:38:32 +00:00
area: MBID
2016-11-28 13:49:04 +00:00
2018-08-04 19:04:19 +00:00
"""The MBID of a collection in which the entity is found."""
2016-11-28 13:49:04 +00:00
collection: MBID
2016-12-12 05:09:37 +00:00
after: String
first: Int
2016-11-26 01:38:32 +00:00
): PlaceConnection
2018-08-04 19:04:19 +00:00
"""Browse recording entities linked to the given arguments."""
2016-11-26 01:38:32 +00:00
recordings(
2018-08-04 19:04:19 +00:00
"""The MBID of an artist to which the entity is linked."""
2016-11-26 01:38:32 +00:00
artist: MBID
2018-08-04 19:04:19 +00:00
"""The MBID of a collection in which the entity is found."""
2016-11-28 13:49:04 +00:00
collection: MBID
2018-08-04 19:04:19 +00:00
"""
The [International Standard Recording Code ](https://musicbrainz.org/doc/ISRC )
(ISRC) of the recording.
"""
2016-12-11 21:09:28 +00:00
isrc: ISRC
2016-12-15 07:18:53 +00:00
2018-08-04 19:04:19 +00:00
"""The MBID of a release to which the entity is linked."""
2016-12-15 07:18:53 +00:00
release: MBID
2016-12-12 05:09:37 +00:00
after: String
first: Int
2016-11-26 01:38:32 +00:00
): RecordingConnection
2018-08-04 19:04:19 +00:00
"""Browse release entities linked to the given arguments."""
2016-11-26 01:38:32 +00:00
releases(
2018-08-04 19:04:19 +00:00
"""The MBID of an area to which the entity is linked."""
2016-11-26 01:38:32 +00:00
area: MBID
2018-08-04 19:04:19 +00:00
"""The MBID of an artist to which the entity is linked."""
2016-11-26 01:38:32 +00:00
artist: MBID
2018-08-04 19:04:19 +00:00
"""The MBID of a collection in which the entity is found."""
2016-11-28 13:49:04 +00:00
collection: MBID
2018-08-04 19:04:19 +00:00
"""
A [disc ID ](https://musicbrainz.org/doc/Disc_ID )
associated with the release.
"""
2016-12-15 07:18:53 +00:00
discID: DiscID
2018-08-04 19:04:19 +00:00
"""The MBID of a label to which the entity is linked."""
2016-11-26 01:38:32 +00:00
label: MBID
2018-08-04 19:04:19 +00:00
"""The MBID of a recording to which the entity is linked."""
2016-12-15 07:18:53 +00:00
recording: MBID
2018-08-04 19:04:19 +00:00
"""The MBID of a release group to which the entity is linked."""
2016-12-15 07:18:53 +00:00
releaseGroup: MBID
2018-08-04 19:04:19 +00:00
"""The MBID of a track that is included in the release."""
2016-11-26 01:38:32 +00:00
track: MBID
2018-08-04 19:04:19 +00:00
"""
The MBID of an artist that appears on a track in the
release, but is not included in the credits for the release itself.
"""
2016-11-26 01:38:32 +00:00
trackArtist: MBID
2018-08-04 19:04:19 +00:00
"""Filter by one or more release group types."""
2016-12-10 02:56:45 +00:00
type: [ReleaseGroupType]
2018-08-04 19:04:19 +00:00
"""Filter by one or more release statuses."""
2016-12-10 02:56:45 +00:00
status: [ReleaseStatus]
2016-12-12 05:09:37 +00:00
after: String
first: Int
2016-11-26 01:38:32 +00:00
): ReleaseConnection
2018-08-04 19:04:19 +00:00
"""Browse release group entities linked to the given arguments."""
2016-11-26 01:38:32 +00:00
releaseGroups(
2018-08-04 19:04:19 +00:00
"""The MBID of an artist to which the entity is linked."""
2016-11-26 01:38:32 +00:00
artist: MBID
2018-08-04 19:04:19 +00:00
"""The MBID of a collection in which the entity is found."""
2016-11-28 13:49:04 +00:00
collection: MBID
2018-08-04 19:04:19 +00:00
"""The MBID of a release to which the entity is linked."""
2016-11-26 01:38:32 +00:00
release: MBID
2016-12-10 02:56:45 +00:00
2018-08-04 19:04:19 +00:00
"""Filter by one or more release group types."""
2016-12-10 02:56:45 +00:00
type: [ReleaseGroupType]
2016-12-12 05:09:37 +00:00
after: String
first: Int
2016-11-26 01:38:32 +00:00
): ReleaseGroupConnection
2018-08-04 19:04:19 +00:00
"""Browse work entities linked to the given arguments."""
2016-11-26 01:38:32 +00:00
works(
2018-08-04 19:04:19 +00:00
"""The MBID of an artist to which the entity is linked."""
2016-11-26 01:38:32 +00:00
artist: MBID
2016-11-28 13:49:04 +00:00
2018-08-04 19:04:19 +00:00
"""The MBID of a collection in which the entity is found."""
2016-11-28 13:49:04 +00:00
collection: MBID
2016-12-11 21:09:28 +00:00
2018-08-04 19:04:19 +00:00
"""
The [International Standard Musical Work Code ](https://musicbrainz.org/doc/ISWC )
(ISWC) of the work.
"""
2016-12-11 21:09:28 +00:00
iswc: ISWC
2016-12-12 05:09:37 +00:00
after: String
first: Int
2016-11-26 01:38:32 +00:00
): WorkConnection
}
2018-08-04 19:04:19 +00:00
"""
[Collections ](https://musicbrainz.org/doc/Collections ) are
lists of entities that users can create.
"""
type Collection implements Node & Entity {
"""The ID of an object"""
2016-12-12 04:03:05 +00:00
id: ID!
2018-08-04 19:04:19 +00:00
"""The MBID of the entity."""
2016-12-12 04:03:05 +00:00
mbid: MBID!
2018-08-04 19:04:19 +00:00
"""The official name of the entity."""
2016-12-12 04:03:05 +00:00
name: String
2018-08-04 19:04:19 +00:00
"""The username of the editor who created the collection."""
2016-12-12 04:03:05 +00:00
editor: String!
2018-08-04 19:04:19 +00:00
"""The type of entity listed in the collection."""
2016-12-12 04:03:05 +00:00
entityType: String!
2018-08-04 19:04:19 +00:00
"""The type of collection."""
2016-12-12 04:03:05 +00:00
type: String
2018-08-04 19:04:19 +00:00
"""
The MBID associated with the value of the `type`
field.
"""
2016-12-12 04:03:05 +00:00
typeID: MBID
2018-08-04 19:04:19 +00:00
"""The list of areas found in this collection."""
2016-12-12 04:03:05 +00:00
areas(after: String, first: Int): AreaConnection
2018-08-04 19:04:19 +00:00
"""The list of artists found in this collection."""
2016-12-12 04:03:05 +00:00
artists(after: String, first: Int): ArtistConnection
2018-08-04 19:04:19 +00:00
"""The list of events found in this collection."""
2016-12-12 04:03:05 +00:00
events(after: String, first: Int): EventConnection
2018-08-04 19:04:19 +00:00
"""The list of instruments found in this collection."""
2016-12-12 08:55:15 +00:00
instruments(after: String, first: Int): InstrumentConnection
2018-08-04 19:04:19 +00:00
"""The list of labels found in this collection."""
2016-12-12 04:03:05 +00:00
labels(after: String, first: Int): LabelConnection
2018-08-04 19:04:19 +00:00
"""The list of places found in this collection."""
2016-12-12 04:03:05 +00:00
places(after: String, first: Int): PlaceConnection
2018-08-04 19:04:19 +00:00
"""The list of recordings found in this collection."""
2016-12-12 04:03:05 +00:00
recordings(after: String, first: Int): RecordingConnection
2018-08-04 19:04:19 +00:00
"""The list of releases found in this collection."""
2016-12-12 04:03:05 +00:00
releases(
2018-08-04 19:04:19 +00:00
"""Filter by one or more release group types."""
2016-12-12 04:03:05 +00:00
type: [ReleaseGroupType]
2018-08-04 19:04:19 +00:00
"""Filter by one or more release statuses."""
2016-12-12 04:03:05 +00:00
status: [ReleaseStatus]
2016-12-12 05:09:37 +00:00
after: String
first: Int
2016-12-12 04:03:05 +00:00
): ReleaseConnection
2018-08-04 19:04:19 +00:00
"""The list of release groups found in this collection."""
2016-12-12 04:03:05 +00:00
releaseGroups(
2018-08-04 19:04:19 +00:00
"""Filter by one or more release group types."""
2016-12-12 04:03:05 +00:00
type: [ReleaseGroupType]
2016-12-12 05:09:37 +00:00
after: String
first: Int
2016-12-12 04:03:05 +00:00
): ReleaseGroupConnection
2018-08-04 19:04:19 +00:00
"""The list of series found in this collection."""
2016-12-12 08:55:15 +00:00
series(after: String, first: Int): SeriesConnection
2018-08-04 19:04:19 +00:00
"""The list of works found in this collection."""
2016-12-12 04:03:05 +00:00
works(after: String, first: Int): WorkConnection
}
2018-08-04 19:04:19 +00:00
"""A connection to a list of items."""
2016-12-12 04:03:05 +00:00
type CollectionConnection {
2018-08-04 19:04:19 +00:00
"""Information to aid in pagination."""
2016-12-12 04:03:05 +00:00
pageInfo: PageInfo!
2018-08-04 19:04:19 +00:00
"""A list of edges."""
2016-12-12 04:03:05 +00:00
edges: [CollectionEdge]
2018-08-04 19:04:19 +00:00
"""
A list of nodes in the connection (without going through the
`edges` field).
"""
2017-10-07 02:43:15 +00:00
nodes: [Collection]
2018-08-04 19:04:19 +00:00
"""
A count of the total number of items in this connection,
ignoring pagination.
"""
2016-12-12 04:03:05 +00:00
totalCount: Int
}
2018-08-04 19:04:19 +00:00
"""An edge in a connection."""
2016-12-12 04:03:05 +00:00
type CollectionEdge {
2018-08-04 19:04:19 +00:00
"""The item at the end of the edge"""
2016-12-12 04:03:05 +00:00
node: Collection
2018-08-04 19:04:19 +00:00
"""A cursor for use in pagination"""
2016-12-12 04:03:05 +00:00
cursor: String!
2018-08-04 19:04:19 +00:00
"""
The relevancy score (0– 100) assigned by the search engine, if
these results were found through a search.
"""
2016-12-12 04:03:05 +00:00
score: Int
}
2018-08-04 19:04:19 +00:00
"""Geographic coordinates described with latitude and longitude."""
2016-11-26 01:38:32 +00:00
type Coordinates {
2018-08-04 19:04:19 +00:00
"""The north– south position of a point on the Earth’ s surface."""
2016-11-26 01:38:32 +00:00
latitude: Degrees
2018-08-04 19:04:19 +00:00
"""The east– west position of a point on the Earth’ s surface."""
2016-11-26 01:38:32 +00:00
longitude: Degrees
}
2018-08-04 19:04:19 +00:00
"""Year, month (optional), and day (optional) in YYYY-MM-DD format."""
2016-11-26 01:38:32 +00:00
scalar Date
2018-08-04 19:04:19 +00:00
"""Decimal degrees, used for latitude and longitude."""
2016-11-26 01:38:32 +00:00
scalar Degrees
2018-08-04 19:04:19 +00:00
"""
Information about the physical CD and releases associated with a
particular [disc ID ](https://musicbrainz.org/doc/Disc_ID ).
"""
2016-12-14 05:18:33 +00:00
type Disc implements Node {
2018-08-04 19:04:19 +00:00
"""The ID of an object"""
2016-12-14 05:18:33 +00:00
id: ID!
2018-08-04 19:04:19 +00:00
"""The [disc ID ](https://musicbrainz.org/doc/Disc_ID ) of this disc."""
2016-12-14 05:18:33 +00:00
discID: DiscID!
2018-08-04 19:04:19 +00:00
"""The number of offsets (tracks) on the disc."""
2016-12-14 05:18:33 +00:00
offsetCount: Int!
2018-08-04 19:04:19 +00:00
"""The sector offset of each track on the disc."""
2016-12-14 05:18:33 +00:00
offsets: [Int]
2018-08-04 19:04:19 +00:00
"""The sector offset of the lead-out (the end of the disc)."""
2016-12-14 05:18:33 +00:00
sectors: Int!
2018-08-04 19:04:19 +00:00
"""The list of releases linked to this disc ID."""
2016-12-14 05:18:33 +00:00
releases(after: String, first: Int): ReleaseConnection
}
2018-08-04 19:04:19 +00:00
"""
[Disc ID ](https://musicbrainz.org/doc/Disc_ID ) is the code
number which MusicBrainz uses to link a physical CD to a [release ](https://musicbrainz.org/doc/Release )
listing.
A release may have any number of disc IDs, and a disc ID may be linked to
multiple releases. This is because disc ID calculation involves a hash of the
frame offsets of the CD tracks.
Different pressing of a CD often have slightly different frame offsets, and
hence different disc IDs.
Conversely, two different CDs may happen to have exactly the same set of frame
offsets and hence the same disc ID.
"""
2016-12-11 21:09:28 +00:00
scalar DiscID
2018-08-04 19:04:19 +00:00
"""A length of time, in milliseconds."""
2016-12-12 04:03:05 +00:00
scalar Duration
2018-08-04 19:04:19 +00:00
"""An entity in the MusicBrainz schema."""
2016-11-26 01:38:32 +00:00
interface Entity {
2018-08-04 19:04:19 +00:00
"""The MBID of the entity."""
2016-11-26 01:38:32 +00:00
mbid: MBID!
}
2018-08-04 19:04:19 +00:00
"""
An [event ](https://musicbrainz.org/doc/Event ) refers to an
organised event which people can attend, and is relevant to MusicBrainz.
Generally this means live performances, like concerts and festivals.
"""
type Event implements Node & Entity {
"""The ID of an object"""
2016-11-26 01:38:32 +00:00
id: ID!
2018-08-04 19:04:19 +00:00
"""The MBID of the entity."""
2016-11-26 01:38:32 +00:00
mbid: MBID!
2018-08-04 19:04:19 +00:00
"""The official name of the entity."""
2016-11-26 01:38:32 +00:00
name: String
2018-08-04 19:04:19 +00:00
"""A comment used to help distinguish identically named entitites."""
2016-11-26 01:38:32 +00:00
disambiguation: String
2018-08-04 19:04:19 +00:00
"""
[Aliases ](https://musicbrainz.org/doc/Aliases ) are used to store
alternate names or misspellings.
"""
2016-11-28 13:49:04 +00:00
aliases: [Alias]
2018-08-04 19:04:19 +00:00
"""
The begin and end dates of the entity’ s existence. Its exact
meaning depends on the type of entity.
"""
2016-11-26 01:38:32 +00:00
lifeSpan: LifeSpan
2018-08-04 19:04:19 +00:00
"""The start time of the event."""
2016-11-26 01:38:32 +00:00
time: Time
2018-08-04 19:04:19 +00:00
"""Whether or not the event took place."""
2016-11-26 01:38:32 +00:00
cancelled: Boolean
2018-08-04 19:04:19 +00:00
"""
A list of songs performed, optionally including links to
artists and works. See the [setlist documentation ](https://musicbrainz.org/doc/Event/Setlist )
for syntax and examples.
"""
2016-11-26 01:38:32 +00:00
setlist: String
2018-08-04 19:04:19 +00:00
"""What kind of event the event is, e.g. concert, festival, etc."""
2016-11-26 01:38:32 +00:00
type: String
2018-08-04 19:04:19 +00:00
"""
The MBID associated with the value of the `type`
field.
"""
2016-11-26 01:38:32 +00:00
typeID: MBID
2016-11-28 13:49:04 +00:00
2018-08-04 19:04:19 +00:00
"""Relationships between this entity and other entitites."""
2016-11-28 13:49:04 +00:00
relationships: Relationships
2018-08-04 19:04:19 +00:00
"""A list of collections containing this entity."""
2016-12-12 08:55:15 +00:00
collections(after: String, first: Int): CollectionConnection
2018-08-04 19:04:19 +00:00
"""The rating users have given to this entity."""
2016-12-14 04:50:38 +00:00
rating: Rating
2018-08-04 19:04:19 +00:00
"""A list of tags linked to this entity."""
2016-11-28 13:49:04 +00:00
tags(after: String, first: Int): TagConnection
2016-11-26 01:38:32 +00:00
}
2018-08-04 19:04:19 +00:00
"""A connection to a list of items."""
2016-11-26 01:38:32 +00:00
type EventConnection {
2018-08-04 19:04:19 +00:00
"""Information to aid in pagination."""
2016-11-26 01:38:32 +00:00
pageInfo: PageInfo!
2018-08-04 19:04:19 +00:00
"""A list of edges."""
2016-11-26 01:38:32 +00:00
edges: [EventEdge]
2016-11-28 13:49:04 +00:00
2018-08-04 19:04:19 +00:00
"""
A list of nodes in the connection (without going through the
`edges` field).
"""
2017-10-07 02:43:15 +00:00
nodes: [Event]
2018-08-04 19:04:19 +00:00
"""
A count of the total number of items in this connection,
ignoring pagination.
"""
2016-11-28 13:49:04 +00:00
totalCount: Int
2016-11-26 01:38:32 +00:00
}
2018-08-04 19:04:19 +00:00
"""An edge in a connection."""
2016-11-26 01:38:32 +00:00
type EventEdge {
2018-08-04 19:04:19 +00:00
"""The item at the end of the edge"""
2016-11-26 01:38:32 +00:00
node: Event
2018-08-04 19:04:19 +00:00
"""A cursor for use in pagination"""
2016-11-26 01:38:32 +00:00
cursor: String!
2016-11-28 14:44:00 +00:00
2018-08-04 19:04:19 +00:00
"""
The relevancy score (0– 100) assigned by the search engine, if
these results were found through a search.
"""
2016-11-28 14:44:00 +00:00
score: Int
2016-11-26 01:38:32 +00:00
}
2018-08-04 19:04:19 +00:00
"""
[Instruments ](https://musicbrainz.org/doc/Instrument ) are
devices created or adapted to make musical sounds. Instruments are primarily
used in relationships between two other entities.
"""
type Instrument implements Node & Entity {
"""The ID of an object"""
2016-11-26 01:38:32 +00:00
id: ID!
2018-08-04 19:04:19 +00:00
"""The MBID of the entity."""
2016-11-26 01:38:32 +00:00
mbid: MBID!
2018-08-04 19:04:19 +00:00
"""The official name of the entity."""
2016-11-26 01:38:32 +00:00
name: String
2018-08-04 19:04:19 +00:00
"""A comment used to help distinguish identically named entitites."""
2016-11-26 01:38:32 +00:00
disambiguation: String
2018-08-04 19:04:19 +00:00
"""
[Aliases ](https://musicbrainz.org/doc/Aliases ) are used to store
alternate names or misspellings.
"""
2016-11-28 13:49:04 +00:00
aliases: [Alias]
2018-08-04 19:04:19 +00:00
"""
A brief description of the main characteristics of the
instrument.
"""
2016-11-26 01:38:32 +00:00
description: String
2018-08-04 19:04:19 +00:00
"""
The type categorises the instrument by the way the sound is
created, similar to the [Hornbostel-Sachs ](https://en.wikipedia.org/wiki/Hornbostel%E2%80%93Sachs )
classification.
"""
2016-11-26 01:38:32 +00:00
type: String
2018-08-04 19:04:19 +00:00
"""
The MBID associated with the value of the `type`
field.
"""
2016-11-26 01:38:32 +00:00
typeID: MBID
2016-11-28 13:49:04 +00:00
2018-08-04 19:04:19 +00:00
"""Relationships between this entity and other entitites."""
2016-11-28 13:49:04 +00:00
relationships: Relationships
2018-08-04 19:04:19 +00:00
"""A list of collections containing this entity."""
2016-12-12 08:55:15 +00:00
collections(after: String, first: Int): CollectionConnection
2018-08-04 19:04:19 +00:00
"""A list of tags linked to this entity."""
2016-11-28 13:49:04 +00:00
tags(after: String, first: Int): TagConnection
}
2018-08-04 19:04:19 +00:00
"""A connection to a list of items."""
2016-11-28 13:49:04 +00:00
type InstrumentConnection {
2018-08-04 19:04:19 +00:00
"""Information to aid in pagination."""
2016-11-28 13:49:04 +00:00
pageInfo: PageInfo!
2018-08-04 19:04:19 +00:00
"""A list of edges."""
2016-11-28 13:49:04 +00:00
edges: [InstrumentEdge]
2018-08-04 19:04:19 +00:00
"""
A list of nodes in the connection (without going through the
`edges` field).
"""
2017-10-07 02:43:15 +00:00
nodes: [Instrument]
2018-08-04 19:04:19 +00:00
"""
A count of the total number of items in this connection,
ignoring pagination.
"""
2016-11-28 13:49:04 +00:00
totalCount: Int
}
2018-08-04 19:04:19 +00:00
"""An edge in a connection."""
2016-11-28 13:49:04 +00:00
type InstrumentEdge {
2018-08-04 19:04:19 +00:00
"""The item at the end of the edge"""
2016-11-28 13:49:04 +00:00
node: Instrument
2018-08-04 19:04:19 +00:00
"""A cursor for use in pagination"""
2016-11-28 13:49:04 +00:00
cursor: String!
2016-11-28 14:44:00 +00:00
2018-08-04 19:04:19 +00:00
"""
The relevancy score (0– 100) assigned by the search engine, if
these results were found through a search.
"""
2016-11-28 14:44:00 +00:00
score: Int
2016-11-26 01:38:32 +00:00
}
2018-08-04 19:04:19 +00:00
"""
An [Interested Parties Information ](https://musicbrainz.org/doc/IPI )
(IPI) code is an identifying number assigned by the CISAC database for musical
rights management.
"""
2016-11-26 01:38:32 +00:00
scalar IPI
2018-08-04 19:04:19 +00:00
"""
The [International Standard Name Identifier ](https://musicbrainz.org/doc/ISNI )
(ISNI) is an ISO standard for uniquely identifying the public identities of
contributors to media content.
"""
2016-12-10 17:51:33 +00:00
scalar ISNI
2018-08-04 19:04:19 +00:00
"""
The [International Standard Recording Code ](https://musicbrainz.org/doc/ISRC )
(ISRC) is an identification system for audio and music video recordings. It is
standarized by the [IFPI ](http://www.ifpi.org/ ) in ISO 3901:2001 and used by
IFPI members to assign a unique identifier to every distinct sound recording
they release. An ISRC identifies a particular [sound recording ](https://musicbrainz.org/doc/Recording ),
not the song itself. Therefore, different recordings, edits, remixes and
remasters of the same song will each be assigned their own ISRC. However, note
that same recording should carry the same ISRC in all countries/territories.
Songs are identified by analogous [International Standard Musical Work Codes ](https://musicbrainz.org/doc/ISWC )
(ISWCs).
"""
2016-12-11 21:09:28 +00:00
scalar ISRC
2018-08-04 19:04:19 +00:00
"""
The [International Standard Musical Work Code ](https://musicbrainz.org/doc/ISWC )
(ISWC) is an ISO standard similar to ISBNs for identifying musical works /
compositions.
"""
2016-12-11 21:09:28 +00:00
scalar ISWC
2018-08-04 19:04:19 +00:00
"""
[Labels ](https://musicbrainz.org/doc/Label ) represent mostly
(but not only) imprints. To a lesser extent, a label entity may be created to
represent a record company.
"""
type Label implements Node & Entity {
"""The ID of an object"""
2016-11-26 01:38:32 +00:00
id: ID!
2018-08-04 19:04:19 +00:00
"""The MBID of the entity."""
2016-11-26 01:38:32 +00:00
mbid: MBID!
2018-08-04 19:04:19 +00:00
"""The official name of the entity."""
2016-11-26 01:38:32 +00:00
name: String
2018-08-04 19:04:19 +00:00
"""
The string to use for the purpose of ordering by name (for
example, by moving articles like ‘ the’ to the end or a person’ s last name to
the front).
"""
2016-11-26 01:38:32 +00:00
sortName: String
2018-08-04 19:04:19 +00:00
"""A comment used to help distinguish identically named entitites."""
2016-11-26 01:38:32 +00:00
disambiguation: String
2018-08-04 19:04:19 +00:00
"""
[Aliases ](https://musicbrainz.org/doc/Aliases ) are used to store
alternate names or misspellings.
"""
2016-11-28 13:49:04 +00:00
aliases: [Alias]
2018-08-04 19:04:19 +00:00
"""The country of origin for the label."""
2016-11-26 01:38:32 +00:00
country: String
2018-08-04 19:04:19 +00:00
"""The area in which the label is based."""
2016-11-26 01:38:32 +00:00
area: Area
2018-08-04 19:04:19 +00:00
"""
The begin and end dates of the entity’ s existence. Its exact
meaning depends on the type of entity.
"""
2016-11-26 01:38:32 +00:00
lifeSpan: LifeSpan
2018-08-04 19:04:19 +00:00
"""
The [“LC” code ](https://musicbrainz.org/doc/Label/Label_Code )
of the label.
"""
2016-11-26 01:38:32 +00:00
labelCode: Int
2018-08-04 19:04:19 +00:00
"""
List of [Interested Parties Information ](https://musicbrainz.org/doc/IPI )
codes for the label.
"""
2016-11-26 01:38:32 +00:00
ipis: [IPI]
2018-08-04 19:04:19 +00:00
"""
A type describing the main activity of the label, e.g.
imprint, production, distributor, rights society, etc.
"""
2016-11-26 01:38:32 +00:00
type: String
2018-08-04 19:04:19 +00:00
"""
The MBID associated with the value of the `type`
field.
"""
2016-11-26 01:38:32 +00:00
typeID: MBID
2018-08-04 19:04:19 +00:00
"""A list of releases linked to this entity."""
2016-11-29 03:14:43 +00:00
releases(
2018-08-04 19:04:19 +00:00
"""Filter by one or more release group types."""
2016-11-29 03:14:43 +00:00
type: [ReleaseGroupType]
2018-08-04 19:04:19 +00:00
"""Filter by one or more release statuses."""
2016-11-29 03:14:43 +00:00
status: [ReleaseStatus]
2016-12-12 05:09:37 +00:00
after: String
first: Int
2016-11-29 03:14:43 +00:00
): ReleaseConnection
2016-11-28 13:49:04 +00:00
2018-08-04 19:04:19 +00:00
"""Relationships between this entity and other entitites."""
2016-11-28 13:49:04 +00:00
relationships: Relationships
2018-08-04 19:04:19 +00:00
"""A list of collections containing this entity."""
2016-12-12 08:55:15 +00:00
collections(after: String, first: Int): CollectionConnection
2018-08-04 19:04:19 +00:00
"""The rating users have given to this entity."""
2016-12-14 04:50:38 +00:00
rating: Rating
2018-08-04 19:04:19 +00:00
"""A list of tags linked to this entity."""
2016-11-28 13:49:04 +00:00
tags(after: String, first: Int): TagConnection
2016-11-26 01:38:32 +00:00
}
2018-08-04 19:04:19 +00:00
"""A connection to a list of items."""
2016-11-26 01:38:32 +00:00
type LabelConnection {
2018-08-04 19:04:19 +00:00
"""Information to aid in pagination."""
2016-11-26 01:38:32 +00:00
pageInfo: PageInfo!
2018-08-04 19:04:19 +00:00
"""A list of edges."""
2016-11-26 01:38:32 +00:00
edges: [LabelEdge]
2016-11-28 13:49:04 +00:00
2018-08-04 19:04:19 +00:00
"""
A list of nodes in the connection (without going through the
`edges` field).
"""
2017-10-07 02:43:15 +00:00
nodes: [Label]
2018-08-04 19:04:19 +00:00
"""
A count of the total number of items in this connection,
ignoring pagination.
"""
2016-11-28 13:49:04 +00:00
totalCount: Int
2016-11-26 01:38:32 +00:00
}
2018-08-04 19:04:19 +00:00
"""An edge in a connection."""
2016-11-26 01:38:32 +00:00
type LabelEdge {
2018-08-04 19:04:19 +00:00
"""The item at the end of the edge"""
2016-11-26 01:38:32 +00:00
node: Label
2018-08-04 19:04:19 +00:00
"""A cursor for use in pagination"""
2016-11-26 01:38:32 +00:00
cursor: String!
2016-11-28 14:44:00 +00:00
2018-08-04 19:04:19 +00:00
"""
The relevancy score (0– 100) assigned by the search engine, if
these results were found through a search.
"""
2016-11-28 14:44:00 +00:00
score: Int
2016-11-26 01:38:32 +00:00
}
2018-08-04 19:04:19 +00:00
"""
Fields indicating the begin and end date of an entity’ s
lifetime, including whether it has ended (even if the date is unknown).
"""
2016-11-26 01:38:32 +00:00
type LifeSpan {
2018-08-04 19:04:19 +00:00
"""The start date of the entity’ s life span."""
2016-11-26 01:38:32 +00:00
begin: Date
2016-11-29 03:14:43 +00:00
2018-08-04 19:04:19 +00:00
"""The end date of the entity’ s life span."""
2016-11-26 01:38:32 +00:00
end: Date
2016-11-29 03:14:43 +00:00
2018-08-04 19:04:19 +00:00
"""Whether or not the entity’ s life span has ended."""
2016-11-26 01:38:32 +00:00
ended: Boolean
}
2018-08-04 19:04:19 +00:00
"""Language code, optionally with country and encoding."""
2016-12-10 02:56:45 +00:00
scalar Locale
2018-08-04 19:04:19 +00:00
"""A lookup of an individual MusicBrainz entity by its MBID."""
2016-11-26 01:38:32 +00:00
type LookupQuery {
2018-08-04 19:04:19 +00:00
"""Look up a specific area by its MBID."""
2016-11-26 01:38:32 +00:00
area(
2018-08-04 19:04:19 +00:00
"""The MBID of the entity."""
2016-11-26 01:38:32 +00:00
mbid: MBID!
): Area
2018-08-04 19:04:19 +00:00
"""Look up a specific artist by its MBID."""
2016-11-26 01:38:32 +00:00
artist(
2018-08-04 19:04:19 +00:00
"""The MBID of the entity."""
2016-11-26 01:38:32 +00:00
mbid: MBID!
): Artist
2018-08-04 19:04:19 +00:00
"""Look up a specific collection by its MBID."""
2016-12-12 04:03:05 +00:00
collection(
2018-08-04 19:04:19 +00:00
"""The MBID of the entity."""
2016-12-12 04:03:05 +00:00
mbid: MBID!
): Collection
2018-08-04 19:04:19 +00:00
"""Look up a specific physical disc by its disc ID."""
2016-12-14 05:18:33 +00:00
disc(
2018-08-04 19:04:19 +00:00
"""
The [disc ID ](https://musicbrainz.org/doc/Disc_ID )
of the disc.
"""
2016-12-14 05:18:33 +00:00
discID: DiscID!
): Disc
2018-08-04 19:04:19 +00:00
"""Look up a specific event by its MBID."""
2016-11-26 01:38:32 +00:00
event(
2018-08-04 19:04:19 +00:00
"""The MBID of the entity."""
2016-11-26 01:38:32 +00:00
mbid: MBID!
): Event
2018-08-04 19:04:19 +00:00
"""Look up a specific instrument by its MBID."""
2016-11-26 01:38:32 +00:00
instrument(
2018-08-04 19:04:19 +00:00
"""The MBID of the entity."""
2016-11-26 01:38:32 +00:00
mbid: MBID!
): Instrument
2018-08-04 19:04:19 +00:00
"""Look up a specific label by its MBID."""
2016-11-26 01:38:32 +00:00
label(
2018-08-04 19:04:19 +00:00
"""The MBID of the entity."""
2016-11-26 01:38:32 +00:00
mbid: MBID!
): Label
2018-08-04 19:04:19 +00:00
"""Look up a specific place by its MBID."""
2016-11-26 01:38:32 +00:00
place(
2018-08-04 19:04:19 +00:00
"""The MBID of the entity."""
2016-11-26 01:38:32 +00:00
mbid: MBID!
): Place
2018-08-04 19:04:19 +00:00
"""Look up a specific recording by its MBID."""
2016-11-26 01:38:32 +00:00
recording(
2018-08-04 19:04:19 +00:00
"""The MBID of the entity."""
2016-11-26 01:38:32 +00:00
mbid: MBID!
): Recording
2018-08-04 19:04:19 +00:00
"""Look up a specific release by its MBID."""
2016-11-26 01:38:32 +00:00
release(
2018-08-04 19:04:19 +00:00
"""The MBID of the entity."""
2016-11-26 01:38:32 +00:00
mbid: MBID!
): Release
2018-08-04 19:04:19 +00:00
"""Look up a specific release group by its MBID."""
2016-11-26 01:38:32 +00:00
releaseGroup(
2018-08-04 19:04:19 +00:00
"""The MBID of the entity."""
2016-11-26 01:38:32 +00:00
mbid: MBID!
): ReleaseGroup
2018-08-04 19:04:19 +00:00
"""Look up a specific series by its MBID."""
2016-11-26 01:38:32 +00:00
series(
2018-08-04 19:04:19 +00:00
"""The MBID of the entity."""
2016-11-26 01:38:32 +00:00
mbid: MBID!
): Series
2018-08-04 19:04:19 +00:00
"""Look up a specific URL by its MBID."""
2016-11-26 01:38:32 +00:00
url(
2018-08-04 19:04:19 +00:00
"""The MBID of the entity."""
2016-12-10 02:56:45 +00:00
mbid: MBID
2018-08-04 19:04:19 +00:00
"""The web address of the URL entity to look up."""
2016-12-10 02:56:45 +00:00
resource: URLString
2016-11-26 01:38:32 +00:00
): URL
2018-08-04 19:04:19 +00:00
"""Look up a specific work by its MBID."""
2016-11-26 01:38:32 +00:00
work(
2018-08-04 19:04:19 +00:00
"""The MBID of the entity."""
2016-11-26 01:38:32 +00:00
mbid: MBID!
): Work
}
2018-08-04 19:04:19 +00:00
"""
The MBID scalar represents MusicBrainz identifiers, which are
36-character UUIDs.
"""
2016-11-26 01:38:32 +00:00
scalar MBID
2018-08-04 19:04:19 +00:00
"""
A medium is the actual physical medium the audio content is
stored upon. This means that each CD in a multi-disc release will be entered as
separate mediums within the release, and that both sides of a vinyl record or
cassette will exist on one medium. Mediums have a format (e.g. CD, DVD, vinyl,
cassette) and can optionally also have a title.
"""
2016-12-12 09:01:40 +00:00
type Medium {
2018-08-04 19:04:19 +00:00
"""The title of this particular medium."""
2016-12-12 09:01:40 +00:00
title: String
2018-08-04 19:04:19 +00:00
"""
The [format ](https://musicbrainz.org/doc/Release/Format ) of
the medium (e.g. CD, DVD, vinyl, cassette).
"""
2016-12-12 09:01:40 +00:00
format: String
2018-08-04 19:04:19 +00:00
"""
The MBID associated with the value of the `format`
field.
"""
2016-12-12 09:01:40 +00:00
formatID: MBID
2018-08-04 19:04:19 +00:00
"""
The order of this medium in the release (for example, in a
multi-disc release).
"""
2016-12-12 09:01:40 +00:00
position: Int
2018-08-04 19:04:19 +00:00
"""The number of audio tracks on this medium."""
2016-12-12 09:01:40 +00:00
trackCount: Int
2016-12-14 05:18:33 +00:00
2018-08-04 19:04:19 +00:00
"""A list of physical discs and their disc IDs for this medium."""
2016-12-14 05:18:33 +00:00
discs: [Disc]
2016-12-12 09:01:40 +00:00
}
2018-08-04 19:04:19 +00:00
"""An object with an ID"""
2016-11-26 01:38:32 +00:00
interface Node {
2018-08-04 19:04:19 +00:00
"""The id of the object."""
2016-11-26 01:38:32 +00:00
id: ID!
}
2018-08-04 19:04:19 +00:00
"""Information about pagination in a connection."""
2016-11-26 01:38:32 +00:00
type PageInfo {
2018-08-04 19:04:19 +00:00
"""When paginating forwards, are there more items?"""
2016-11-26 01:38:32 +00:00
hasNextPage: Boolean!
2018-08-04 19:04:19 +00:00
"""When paginating backwards, are there more items?"""
2016-11-26 01:38:32 +00:00
hasPreviousPage: Boolean!
2018-08-04 19:04:19 +00:00
"""When paginating backwards, the cursor to continue."""
2016-11-26 01:38:32 +00:00
startCursor: String
2018-08-04 19:04:19 +00:00
"""When paginating forwards, the cursor to continue."""
2016-11-26 01:38:32 +00:00
endCursor: String
}
2018-08-04 19:04:19 +00:00
"""
A [place ](https://musicbrainz.org/doc/Place ) is a venue, studio,
or other place where music is performed, recorded, engineered, etc.
"""
type Place implements Node & Entity {
"""The ID of an object"""
2016-11-26 01:38:32 +00:00
id: ID!
2018-08-04 19:04:19 +00:00
"""The MBID of the entity."""
2016-11-26 01:38:32 +00:00
mbid: MBID!
2018-08-04 19:04:19 +00:00
"""The official name of the entity."""
2016-11-26 01:38:32 +00:00
name: String
2018-08-04 19:04:19 +00:00
"""A comment used to help distinguish identically named entitites."""
2016-11-26 01:38:32 +00:00
disambiguation: String
2018-08-04 19:04:19 +00:00
"""
[Aliases ](https://musicbrainz.org/doc/Aliases ) are used to store
alternate names or misspellings.
"""
2016-11-28 13:49:04 +00:00
aliases: [Alias]
2018-08-04 19:04:19 +00:00
"""
The address describes the location of the place using the
standard addressing format for the country it is located in.
"""
2016-11-26 01:38:32 +00:00
address: String
2018-08-04 19:04:19 +00:00
"""
The area entity representing the area, such as the city, in
which the place is located.
"""
2016-11-26 01:38:32 +00:00
area: Area
2018-08-04 19:04:19 +00:00
"""The geographic coordinates of the place."""
2016-11-26 01:38:32 +00:00
coordinates: Coordinates
2018-08-04 19:04:19 +00:00
"""
The begin and end dates of the entity’ s existence. Its exact
meaning depends on the type of entity.
"""
2016-11-26 01:38:32 +00:00
lifeSpan: LifeSpan
2018-08-04 19:04:19 +00:00
"""
The type categorises the place based on its primary
function.
"""
2016-11-26 01:38:32 +00:00
type: String
2018-08-04 19:04:19 +00:00
"""
The MBID associated with the value of the `type`
field.
"""
2016-11-26 01:38:32 +00:00
typeID: MBID
2018-08-04 19:04:19 +00:00
"""A list of events linked to this entity."""
2016-11-26 01:38:32 +00:00
events(after: String, first: Int): EventConnection
2016-11-28 13:49:04 +00:00
2018-08-04 19:04:19 +00:00
"""Relationships between this entity and other entitites."""
2016-11-28 13:49:04 +00:00
relationships: Relationships
2018-08-04 19:04:19 +00:00
"""A list of collections containing this entity."""
2016-12-12 08:55:15 +00:00
collections(after: String, first: Int): CollectionConnection
2018-08-04 19:04:19 +00:00
"""A list of tags linked to this entity."""
2016-11-28 13:49:04 +00:00
tags(after: String, first: Int): TagConnection
2016-11-26 01:38:32 +00:00
}
2018-08-04 19:04:19 +00:00
"""A connection to a list of items."""
2016-11-26 01:38:32 +00:00
type PlaceConnection {
2018-08-04 19:04:19 +00:00
"""Information to aid in pagination."""
2016-11-26 01:38:32 +00:00
pageInfo: PageInfo!
2018-08-04 19:04:19 +00:00
"""A list of edges."""
2016-11-26 01:38:32 +00:00
edges: [PlaceEdge]
2016-11-28 13:49:04 +00:00
2018-08-04 19:04:19 +00:00
"""
A list of nodes in the connection (without going through the
`edges` field).
"""
2017-10-07 02:43:15 +00:00
nodes: [Place]
2018-08-04 19:04:19 +00:00
"""
A count of the total number of items in this connection,
ignoring pagination.
"""
2016-11-28 13:49:04 +00:00
totalCount: Int
2016-11-26 01:38:32 +00:00
}
2018-08-04 19:04:19 +00:00
"""An edge in a connection."""
2016-11-26 01:38:32 +00:00
type PlaceEdge {
2018-08-04 19:04:19 +00:00
"""The item at the end of the edge"""
2016-11-26 01:38:32 +00:00
node: Place
2018-08-04 19:04:19 +00:00
"""A cursor for use in pagination"""
2016-11-26 01:38:32 +00:00
cursor: String!
2016-11-28 14:44:00 +00:00
2018-08-04 19:04:19 +00:00
"""
The relevancy score (0– 100) assigned by the search engine, if
these results were found through a search.
"""
2016-11-28 14:44:00 +00:00
score: Int
2016-11-26 01:38:32 +00:00
}
2018-08-04 19:04:19 +00:00
"""
The query root, from which multiple types of MusicBrainz
requests can be made.
"""
2016-11-26 01:38:32 +00:00
type Query {
2018-08-04 19:04:19 +00:00
"""Perform a lookup of a MusicBrainz entity by its MBID."""
2016-11-26 01:38:32 +00:00
lookup: LookupQuery
2018-08-04 19:04:19 +00:00
"""Browse all MusicBrainz entities directly linked to another entity."""
2016-11-26 01:38:32 +00:00
browse: BrowseQuery
2018-08-04 19:04:19 +00:00
"""Search for MusicBrainz entities using Lucene query syntax."""
2016-11-26 01:38:32 +00:00
search: SearchQuery
2016-12-02 08:49:39 +00:00
2018-08-04 19:04:19 +00:00
"""Fetches an object given its ID"""
2016-12-02 08:49:39 +00:00
node(
2018-08-04 19:04:19 +00:00
"""The ID of an object"""
2016-12-02 08:49:39 +00:00
id: ID!
): Node
2016-11-26 01:38:32 +00:00
}
2018-08-04 19:04:19 +00:00
"""
[Ratings ](https://musicbrainz.org/doc/Rating_System ) allow users
to rate MusicBrainz entities. User may assign a value between 1 and 5; these
values are then aggregated by the server to compute an average community rating
for the entity.
"""
2016-12-14 04:50:38 +00:00
type Rating {
2018-08-04 19:04:19 +00:00
"""The number of votes that have contributed to the rating."""
2016-12-14 04:50:38 +00:00
voteCount: Int!
2018-08-04 19:04:19 +00:00
"""The average rating value based on the aggregated votes."""
2017-10-06 03:27:53 +00:00
value: Float
2016-12-14 04:50:38 +00:00
}
2018-08-04 19:04:19 +00:00
"""
A [recording ](https://musicbrainz.org/doc/Recording ) is an
entity in MusicBrainz which can be linked to tracks on releases. Each track must
always be associated with a single recording, but a recording can be linked to
any number of tracks.
A recording represents distinct audio that has been used to produce at least one
released track through copying or mastering. A recording itself is never
produced solely through copying or mastering.
Generally, the audio represented by a recording corresponds to the audio at a
stage in the production process before any final mastering but after any editing
or mixing.
"""
type Recording implements Node & Entity {
"""The ID of an object"""
2016-11-26 01:38:32 +00:00
id: ID!
2018-08-04 19:04:19 +00:00
"""The MBID of the entity."""
2016-11-26 01:38:32 +00:00
mbid: MBID!
2018-08-04 19:04:19 +00:00
"""The official title of the entity."""
2016-11-26 01:38:32 +00:00
title: String
2018-08-04 19:04:19 +00:00
"""A comment used to help distinguish identically named entitites."""
2016-11-26 01:38:32 +00:00
disambiguation: String
2018-08-04 19:04:19 +00:00
"""
[Aliases ](https://musicbrainz.org/doc/Aliases ) are used to store
alternate names or misspellings.
"""
2016-11-28 13:49:04 +00:00
aliases: [Alias]
2018-08-04 19:04:19 +00:00
"""The main credited artist(s)."""
artistCredit: [ArtistCredit] @deprecated (reason: "The `artistCredit` field has been renamed to\n`artistCredits` , since it is a list of credits and is referred to in the\nplural form throughout the MusicBrainz documentation. This field is deprecated\nand will be removed in a major release in the future. Use the equivalent\n`artistCredits` field.")
2016-12-11 20:32:58 +00:00
2018-08-04 19:04:19 +00:00
"""The main credited artist(s)."""
2016-12-11 20:32:58 +00:00
artistCredits: [ArtistCredit]
2016-11-26 01:38:32 +00:00
2018-08-04 19:04:19 +00:00
"""
A list of [International Standard Recording Codes ](https://musicbrainz.org/doc/ISRC )
(ISRCs) for this recording.
"""
2016-12-11 21:09:28 +00:00
isrcs: [ISRC]
2018-08-04 19:04:19 +00:00
"""
An approximation to the length of the recording, calculated
from the lengths of the tracks using it.
"""
2016-12-12 04:03:05 +00:00
length: Duration
2016-11-26 01:38:32 +00:00
2018-08-04 19:04:19 +00:00
"""Whether this is a video recording."""
2016-11-26 01:38:32 +00:00
video: Boolean
2018-08-04 19:04:19 +00:00
"""A list of artists linked to this entity."""
2016-11-26 01:38:32 +00:00
artists(after: String, first: Int): ArtistConnection
2018-08-04 19:04:19 +00:00
"""A list of releases linked to this entity."""
2016-11-29 03:14:43 +00:00
releases(
2018-08-04 19:04:19 +00:00
"""Filter by one or more release group types."""
2016-11-29 03:14:43 +00:00
type: [ReleaseGroupType]
2018-08-04 19:04:19 +00:00
"""Filter by one or more release statuses."""
2016-11-29 03:14:43 +00:00
status: [ReleaseStatus]
2016-12-12 05:09:37 +00:00
after: String
first: Int
2016-11-29 03:14:43 +00:00
): ReleaseConnection
2016-11-26 01:38:32 +00:00
2018-08-04 19:04:19 +00:00
"""Relationships between this entity and other entitites."""
2016-11-26 01:38:32 +00:00
relationships: Relationships
2016-11-28 13:49:04 +00:00
2018-08-04 19:04:19 +00:00
"""A list of collections containing this entity."""
2016-12-12 08:55:15 +00:00
collections(after: String, first: Int): CollectionConnection
2018-08-04 19:04:19 +00:00
"""The rating users have given to this entity."""
2016-12-14 04:50:38 +00:00
rating: Rating
2018-08-04 19:04:19 +00:00
"""A list of tags linked to this entity."""
2016-11-28 13:49:04 +00:00
tags(after: String, first: Int): TagConnection
2016-11-26 01:38:32 +00:00
}
2018-08-04 19:04:19 +00:00
"""A connection to a list of items."""
2016-11-26 01:38:32 +00:00
type RecordingConnection {
2018-08-04 19:04:19 +00:00
"""Information to aid in pagination."""
2016-11-26 01:38:32 +00:00
pageInfo: PageInfo!
2018-08-04 19:04:19 +00:00
"""A list of edges."""
2016-11-26 01:38:32 +00:00
edges: [RecordingEdge]
2016-11-28 13:49:04 +00:00
2018-08-04 19:04:19 +00:00
"""
A list of nodes in the connection (without going through the
`edges` field).
"""
2017-10-07 02:43:15 +00:00
nodes: [Recording]
2018-08-04 19:04:19 +00:00
"""
A count of the total number of items in this connection,
ignoring pagination.
"""
2016-11-28 13:49:04 +00:00
totalCount: Int
2016-11-26 01:38:32 +00:00
}
2018-08-04 19:04:19 +00:00
"""An edge in a connection."""
2016-11-26 01:38:32 +00:00
type RecordingEdge {
2018-08-04 19:04:19 +00:00
"""The item at the end of the edge"""
2016-11-26 01:38:32 +00:00
node: Recording
2018-08-04 19:04:19 +00:00
"""A cursor for use in pagination"""
2016-11-26 01:38:32 +00:00
cursor: String!
2016-11-28 14:44:00 +00:00
2018-08-04 19:04:19 +00:00
"""
The relevancy score (0– 100) assigned by the search engine, if
these results were found through a search.
"""
2016-11-28 14:44:00 +00:00
score: Int
2016-11-26 01:38:32 +00:00
}
2018-08-04 19:04:19 +00:00
"""
[Relationships ](https://musicbrainz.org/doc/Relationships ) are a
way to represent all the different ways in which entities are connected to each
other and to URLs outside MusicBrainz.
"""
2016-11-26 01:38:32 +00:00
type Relationship {
2018-08-04 19:04:19 +00:00
"""The target entity."""
2016-11-26 01:38:32 +00:00
target: Entity!
2018-08-04 19:04:19 +00:00
"""The direction of the relationship."""
2016-11-26 01:38:32 +00:00
direction: String!
2018-08-04 19:04:19 +00:00
"""The type of entity on the receiving end of the relationship."""
2016-11-26 01:38:32 +00:00
targetType: String!
2018-08-04 19:04:19 +00:00
"""
How the source entity was actually credited, if different
from its main (performance) name.
"""
2016-11-26 01:38:32 +00:00
sourceCredit: String
2018-08-04 19:04:19 +00:00
"""
How the target entity was actually credited, if different
from its main (performance) name.
"""
2016-11-26 01:38:32 +00:00
targetCredit: String
2018-08-04 19:04:19 +00:00
"""The date on which the relationship became applicable."""
2016-11-26 01:38:32 +00:00
begin: Date
2018-08-04 19:04:19 +00:00
"""The date on which the relationship became no longer applicable."""
2016-11-26 01:38:32 +00:00
end: Date
2018-08-04 19:04:19 +00:00
"""Whether the relationship still applies."""
2016-11-26 01:38:32 +00:00
ended: Boolean
2018-08-04 19:04:19 +00:00
"""
Attributes which modify the relationship. There is a [list
of all attributes](https://musicbrainz.org/relationship-attributes), but the
attributes which are available, and how they should be used, depends on the
relationship type.
"""
2016-11-26 01:38:32 +00:00
attributes: [String]
2018-08-04 19:04:19 +00:00
"""The type of relationship."""
2016-11-26 01:38:32 +00:00
type: String
2018-08-04 19:04:19 +00:00
"""
The MBID associated with the value of the `type`
field.
"""
2016-11-26 01:38:32 +00:00
typeID: MBID
}
2018-08-04 19:04:19 +00:00
"""A connection to a list of items."""
2016-11-26 01:38:32 +00:00
type RelationshipConnection {
2018-08-04 19:04:19 +00:00
"""Information to aid in pagination."""
2016-11-26 01:38:32 +00:00
pageInfo: PageInfo!
2018-08-04 19:04:19 +00:00
"""A list of edges."""
2016-11-26 01:38:32 +00:00
edges: [RelationshipEdge]
2016-11-28 13:49:04 +00:00
2018-08-04 19:04:19 +00:00
"""
A list of nodes in the connection (without going through the
`edges` field).
"""
2017-10-07 02:43:15 +00:00
nodes: [Relationship]
2018-08-04 19:04:19 +00:00
"""
A count of the total number of items in this connection,
ignoring pagination.
"""
2016-11-28 13:49:04 +00:00
totalCount: Int
2016-11-26 01:38:32 +00:00
}
2018-08-04 19:04:19 +00:00
"""An edge in a connection."""
2016-11-26 01:38:32 +00:00
type RelationshipEdge {
2018-08-04 19:04:19 +00:00
"""The item at the end of the edge"""
2016-11-26 01:38:32 +00:00
node: Relationship
2018-08-04 19:04:19 +00:00
"""A cursor for use in pagination"""
2016-11-26 01:38:32 +00:00
cursor: String!
2016-11-28 14:44:00 +00:00
2018-08-04 19:04:19 +00:00
"""
The relevancy score (0– 100) assigned by the search engine, if
these results were found through a search.
"""
2016-11-28 14:44:00 +00:00
score: Int
2016-11-26 01:38:32 +00:00
}
2018-08-04 19:04:19 +00:00
"""Lists of entity relationships for each entity type."""
2016-11-26 01:38:32 +00:00
type Relationships {
2018-08-04 19:04:19 +00:00
"""A list of relationships between these two entity types."""
2016-11-26 01:38:32 +00:00
areas(
2018-08-04 19:04:19 +00:00
"""Filter by the relationship direction."""
2016-11-26 01:38:32 +00:00
direction: String
2018-08-04 19:04:19 +00:00
"""Filter by the relationship type."""
2016-11-26 01:38:32 +00:00
type: String
2018-08-04 19:04:19 +00:00
"""
The MBID associated with the value of the `type`
field.
"""
2016-11-26 01:38:32 +00:00
typeID: MBID
after: String
first: Int
before: String
last: Int
2016-12-12 08:55:15 +00:00
): RelationshipConnection
2016-11-26 01:38:32 +00:00
2018-08-04 19:04:19 +00:00
"""A list of relationships between these two entity types."""
2016-12-12 08:55:15 +00:00
artists(
2018-08-04 19:04:19 +00:00
"""Filter by the relationship direction."""
2016-11-26 01:38:32 +00:00
direction: String
2018-08-04 19:04:19 +00:00
"""Filter by the relationship type."""
2016-11-26 01:38:32 +00:00
type: String
2018-08-04 19:04:19 +00:00
"""
The MBID associated with the value of the `type`
field.
"""
2016-11-26 01:38:32 +00:00
typeID: MBID
after: String
first: Int
before: String
last: Int
2016-12-12 08:55:15 +00:00
): RelationshipConnection
2016-11-26 01:38:32 +00:00
2018-08-04 19:04:19 +00:00
"""A list of relationships between these two entity types."""
2016-12-12 08:55:15 +00:00
events(
2018-08-04 19:04:19 +00:00
"""Filter by the relationship direction."""
2016-11-26 01:38:32 +00:00
direction: String
2018-08-04 19:04:19 +00:00
"""Filter by the relationship type."""
2016-11-26 01:38:32 +00:00
type: String
2018-08-04 19:04:19 +00:00
"""
The MBID associated with the value of the `type`
field.
"""
2016-11-26 01:38:32 +00:00
typeID: MBID
after: String
first: Int
before: String
last: Int
2016-12-12 08:55:15 +00:00
): RelationshipConnection
2016-11-26 01:38:32 +00:00
2018-08-04 19:04:19 +00:00
"""A list of relationships between these two entity types."""
2016-12-12 08:55:15 +00:00
instruments(
2018-08-04 19:04:19 +00:00
"""Filter by the relationship direction."""
2016-11-26 01:38:32 +00:00
direction: String
2018-08-04 19:04:19 +00:00
"""Filter by the relationship type."""
2016-11-26 01:38:32 +00:00
type: String
2018-08-04 19:04:19 +00:00
"""
The MBID associated with the value of the `type`
field.
"""
2016-11-26 01:38:32 +00:00
typeID: MBID
after: String
first: Int
before: String
last: Int
2016-12-12 08:55:15 +00:00
): RelationshipConnection
2016-11-26 01:38:32 +00:00
2018-08-04 19:04:19 +00:00
"""A list of relationships between these two entity types."""
2016-12-12 08:55:15 +00:00
labels(
2018-08-04 19:04:19 +00:00
"""Filter by the relationship direction."""
2016-11-26 01:38:32 +00:00
direction: String
2018-08-04 19:04:19 +00:00
"""Filter by the relationship type."""
2016-11-26 01:38:32 +00:00
type: String
2018-08-04 19:04:19 +00:00
"""
The MBID associated with the value of the `type`
field.
"""
2016-11-26 01:38:32 +00:00
typeID: MBID
after: String
first: Int
before: String
last: Int
2016-12-12 08:55:15 +00:00
): RelationshipConnection
2016-11-26 01:38:32 +00:00
2018-08-04 19:04:19 +00:00
"""A list of relationships between these two entity types."""
2016-12-12 08:55:15 +00:00
places(
2018-08-04 19:04:19 +00:00
"""Filter by the relationship direction."""
2016-11-26 01:38:32 +00:00
direction: String
2018-08-04 19:04:19 +00:00
"""Filter by the relationship type."""
2016-11-26 01:38:32 +00:00
type: String
2018-08-04 19:04:19 +00:00
"""
The MBID associated with the value of the `type`
field.
"""
2016-11-26 01:38:32 +00:00
typeID: MBID
after: String
first: Int
before: String
last: Int
2016-12-12 08:55:15 +00:00
): RelationshipConnection
2016-11-26 01:38:32 +00:00
2018-08-04 19:04:19 +00:00
"""A list of relationships between these two entity types."""
2016-12-12 08:55:15 +00:00
recordings(
2018-08-04 19:04:19 +00:00
"""Filter by the relationship direction."""
2016-11-26 01:38:32 +00:00
direction: String
2018-08-04 19:04:19 +00:00
"""Filter by the relationship type."""
2016-11-26 01:38:32 +00:00
type: String
2018-08-04 19:04:19 +00:00
"""
The MBID associated with the value of the `type`
field.
"""
2016-11-26 01:38:32 +00:00
typeID: MBID
after: String
first: Int
before: String
last: Int
2016-12-12 08:55:15 +00:00
): RelationshipConnection
2016-11-26 01:38:32 +00:00
2018-08-04 19:04:19 +00:00
"""A list of relationships between these two entity types."""
2016-12-12 08:55:15 +00:00
releases(
2018-08-04 19:04:19 +00:00
"""Filter by the relationship direction."""
2016-11-26 01:38:32 +00:00
direction: String
2018-08-04 19:04:19 +00:00
"""Filter by the relationship type."""
2016-11-26 01:38:32 +00:00
type: String
2018-08-04 19:04:19 +00:00
"""
The MBID associated with the value of the `type`
field.
"""
2016-11-26 01:38:32 +00:00
typeID: MBID
after: String
first: Int
before: String
last: Int
2016-12-12 08:55:15 +00:00
): RelationshipConnection
2016-11-26 01:38:32 +00:00
2018-08-04 19:04:19 +00:00
"""A list of relationships between these two entity types."""
2016-12-12 08:55:15 +00:00
releaseGroups(
2018-08-04 19:04:19 +00:00
"""Filter by the relationship direction."""
2016-11-26 01:38:32 +00:00
direction: String
2018-08-04 19:04:19 +00:00
"""Filter by the relationship type."""
2016-11-26 01:38:32 +00:00
type: String
2018-08-04 19:04:19 +00:00
"""
The MBID associated with the value of the `type`
field.
"""
2016-11-26 01:38:32 +00:00
typeID: MBID
after: String
first: Int
before: String
last: Int
2016-12-12 08:55:15 +00:00
): RelationshipConnection
2016-11-26 01:38:32 +00:00
2018-08-04 19:04:19 +00:00
"""A list of relationships between these two entity types."""
2016-12-12 08:55:15 +00:00
series(
2018-08-04 19:04:19 +00:00
"""Filter by the relationship direction."""
2016-11-26 01:38:32 +00:00
direction: String
2018-08-04 19:04:19 +00:00
"""Filter by the relationship type."""
2016-11-26 01:38:32 +00:00
type: String
2018-08-04 19:04:19 +00:00
"""
The MBID associated with the value of the `type`
field.
"""
2016-11-26 01:38:32 +00:00
typeID: MBID
after: String
first: Int
before: String
last: Int
2016-12-12 08:55:15 +00:00
): RelationshipConnection
2016-11-26 01:38:32 +00:00
2018-08-04 19:04:19 +00:00
"""A list of relationships between these two entity types."""
2016-12-12 08:55:15 +00:00
urls(
2018-08-04 19:04:19 +00:00
"""Filter by the relationship direction."""
2016-11-26 01:38:32 +00:00
direction: String
2018-08-04 19:04:19 +00:00
"""Filter by the relationship type."""
2016-11-26 01:38:32 +00:00
type: String
2018-08-04 19:04:19 +00:00
"""
The MBID associated with the value of the `type`
field.
"""
2016-11-26 01:38:32 +00:00
typeID: MBID
after: String
first: Int
before: String
last: Int
2016-12-12 08:55:15 +00:00
): RelationshipConnection
2016-11-26 01:38:32 +00:00
2018-08-04 19:04:19 +00:00
"""A list of relationships between these two entity types."""
2016-12-12 08:55:15 +00:00
works(
2018-08-04 19:04:19 +00:00
"""Filter by the relationship direction."""
2016-11-26 01:38:32 +00:00
direction: String
2018-08-04 19:04:19 +00:00
"""Filter by the relationship type."""
2016-11-26 01:38:32 +00:00
type: String
2018-08-04 19:04:19 +00:00
"""
The MBID associated with the value of the `type`
field.
"""
2016-11-26 01:38:32 +00:00
typeID: MBID
2016-12-12 08:55:15 +00:00
after: String
first: Int
before: String
last: Int
2016-11-26 01:38:32 +00:00
): RelationshipConnection
}
2018-08-04 19:04:19 +00:00
"""
A [release ](https://musicbrainz.org/doc/Release ) represents the
unique release (i.e. issuing) of a product on a specific date with specific
release information such as the country, label, barcode, packaging, etc. If you
walk into a store and purchase an album or single, they’ re each represented in
MusicBrainz as one release.
"""
type Release implements Node & Entity {
"""The ID of an object"""
2016-11-26 01:38:32 +00:00
id: ID!
2018-08-04 19:04:19 +00:00
"""The MBID of the entity."""
2016-11-26 01:38:32 +00:00
mbid: MBID!
2018-08-04 19:04:19 +00:00
"""The official title of the entity."""
2016-11-26 01:38:32 +00:00
title: String
2018-08-04 19:04:19 +00:00
"""A comment used to help distinguish identically named entitites."""
2016-11-26 01:38:32 +00:00
disambiguation: String
2018-08-04 19:04:19 +00:00
"""
[Aliases ](https://musicbrainz.org/doc/Aliases ) are used to store
alternate names or misspellings.
"""
2016-11-28 13:49:04 +00:00
aliases: [Alias]
2018-08-04 19:04:19 +00:00
"""The main credited artist(s)."""
artistCredit: [ArtistCredit] @deprecated (reason: "The `artistCredit` field has been renamed to\n`artistCredits` , since it is a list of credits and is referred to in the\nplural form throughout the MusicBrainz documentation. This field is deprecated\nand will be removed in a major release in the future. Use the equivalent\n`artistCredits` field.")
2016-12-11 20:32:58 +00:00
2018-08-04 19:04:19 +00:00
"""The main credited artist(s)."""
2016-12-11 20:32:58 +00:00
artistCredits: [ArtistCredit]
2016-11-26 01:38:32 +00:00
2018-08-04 19:04:19 +00:00
"""The release events for this release."""
2016-11-26 01:38:32 +00:00
releaseEvents: [ReleaseEvent]
2018-08-04 19:04:19 +00:00
"""
The [release date ](https://musicbrainz.org/doc/Release/Date )
is the date in which a release was made available through some sort of
distribution mechanism.
"""
2016-11-26 01:38:32 +00:00
date: Date
2018-08-04 19:04:19 +00:00
"""The country in which the release was issued."""
2016-11-26 01:38:32 +00:00
country: String
2018-08-04 19:04:19 +00:00
"""
The [Amazon Standard Identification Number ](https://musicbrainz.org/doc/ASIN )
of the release.
"""
2016-12-10 02:56:45 +00:00
asin: ASIN
2018-08-04 19:04:19 +00:00
"""
The [barcode ](https://en.wikipedia.org/wiki/Barcode ), if the
release has one. The most common types found on releases are 12-digit
[UPCs ](https://en.wikipedia.org/wiki/Universal_Product_Code ) and 13-digit
[EANs ](https://en.wikipedia.org/wiki/International_Article_Number ).
"""
2016-11-26 01:38:32 +00:00
barcode: String
2018-08-04 19:04:19 +00:00
"""The status describes how “official” a release is."""
2016-11-26 01:38:32 +00:00
status: ReleaseStatus
2018-08-04 19:04:19 +00:00
"""
The MBID associated with the value of the `status`
field.
"""
2016-11-26 01:38:32 +00:00
statusID: MBID
2018-08-04 19:04:19 +00:00
"""
The physical packaging that accompanies the release. See
the [list of packaging ](https://musicbrainz.org/doc/Release/Packaging ) for more
information.
"""
2016-11-26 01:38:32 +00:00
packaging: String
2018-08-04 19:04:19 +00:00
"""
The MBID associated with the value of the `packaging`
field.
"""
2016-11-26 01:38:32 +00:00
packagingID: MBID
2018-08-04 19:04:19 +00:00
"""
Data quality indicates how good the data for a release is.
It is not a mark of how good or bad the music itself is – for that, use
[ratings ](https://musicbrainz.org/doc/Rating_System ).
"""
2016-11-26 01:38:32 +00:00
quality: String
2018-08-04 19:04:19 +00:00
"""The media on which the release was distributed."""
2016-12-12 09:01:40 +00:00
media: [Medium]
2018-08-04 19:04:19 +00:00
"""A list of artists linked to this entity."""
2016-11-26 01:38:32 +00:00
artists(after: String, first: Int): ArtistConnection
2018-08-04 19:04:19 +00:00
"""A list of labels linked to this entity."""
2016-11-26 01:38:32 +00:00
labels(after: String, first: Int): LabelConnection
2018-08-04 19:04:19 +00:00
"""A list of recordings linked to this entity."""
2016-11-26 01:38:32 +00:00
recordings(after: String, first: Int): RecordingConnection
2018-08-04 19:04:19 +00:00
"""A list of release groups linked to this entity."""
2016-11-29 03:14:43 +00:00
releaseGroups(
2018-08-04 19:04:19 +00:00
"""Filter by one or more release group types."""
2016-11-29 03:14:43 +00:00
type: [ReleaseGroupType]
2016-12-12 05:09:37 +00:00
after: String
first: Int
2016-11-29 03:14:43 +00:00
): ReleaseGroupConnection
2016-11-26 01:38:32 +00:00
2018-08-04 19:04:19 +00:00
"""Relationships between this entity and other entitites."""
2016-11-26 01:38:32 +00:00
relationships: Relationships
2016-11-28 13:49:04 +00:00
2018-08-04 19:04:19 +00:00
"""A list of collections containing this entity."""
2016-12-12 08:55:15 +00:00
collections(after: String, first: Int): CollectionConnection
2018-08-04 19:04:19 +00:00
"""A list of tags linked to this entity."""
2016-11-28 13:49:04 +00:00
tags(after: String, first: Int): TagConnection
2016-11-26 01:38:32 +00:00
}
2018-08-04 19:04:19 +00:00
"""A connection to a list of items."""
2016-11-26 01:38:32 +00:00
type ReleaseConnection {
2018-08-04 19:04:19 +00:00
"""Information to aid in pagination."""
2016-11-26 01:38:32 +00:00
pageInfo: PageInfo!
2018-08-04 19:04:19 +00:00
"""A list of edges."""
2016-11-26 01:38:32 +00:00
edges: [ReleaseEdge]
2016-11-28 13:49:04 +00:00
2018-08-04 19:04:19 +00:00
"""
A list of nodes in the connection (without going through the
`edges` field).
"""
2017-10-07 02:43:15 +00:00
nodes: [Release]
2018-08-04 19:04:19 +00:00
"""
A count of the total number of items in this connection,
ignoring pagination.
"""
2016-11-28 13:49:04 +00:00
totalCount: Int
2016-11-26 01:38:32 +00:00
}
2018-08-04 19:04:19 +00:00
"""An edge in a connection."""
2016-11-26 01:38:32 +00:00
type ReleaseEdge {
2018-08-04 19:04:19 +00:00
"""The item at the end of the edge"""
2016-11-26 01:38:32 +00:00
node: Release
2018-08-04 19:04:19 +00:00
"""A cursor for use in pagination"""
2016-11-26 01:38:32 +00:00
cursor: String!
2016-11-28 14:44:00 +00:00
2018-08-04 19:04:19 +00:00
"""
The relevancy score (0– 100) assigned by the search engine, if
these results were found through a search.
"""
2016-11-28 14:44:00 +00:00
score: Int
2016-11-26 01:38:32 +00:00
}
2018-08-04 19:04:19 +00:00
"""
The date on which a release was issued in a country/region with
a particular label, catalog number, barcode, and format.
"""
2016-11-26 01:38:32 +00:00
type ReleaseEvent {
area: Area
date: Date
}
2018-08-04 19:04:19 +00:00
"""
A [release group ](https://musicbrainz.org/doc/Release_Group ) is
used to group several different releases into a single logical entity. Every
release belongs to one, and only one release group.
Both release groups and releases are “albums” in a general sense, but with an
important difference: a release is something you can buy as media such as a CD
or a vinyl record, while a release group embraces the overall concept of an
album – it doesn’ t matter how many CDs or editions/versions it had.
"""
type ReleaseGroup implements Node & Entity {
"""The ID of an object"""
2016-11-26 01:38:32 +00:00
id: ID!
2018-08-04 19:04:19 +00:00
"""The MBID of the entity."""
2016-11-26 01:38:32 +00:00
mbid: MBID!
2018-08-04 19:04:19 +00:00
"""The official title of the entity."""
2016-11-26 01:38:32 +00:00
title: String
2018-08-04 19:04:19 +00:00
"""A comment used to help distinguish identically named entitites."""
2016-11-26 01:38:32 +00:00
disambiguation: String
2018-08-04 19:04:19 +00:00
"""
[Aliases ](https://musicbrainz.org/doc/Aliases ) are used to store
alternate names or misspellings.
"""
2016-11-28 13:49:04 +00:00
aliases: [Alias]
2018-08-04 19:04:19 +00:00
"""The main credited artist(s)."""
artistCredit: [ArtistCredit] @deprecated (reason: "The `artistCredit` field has been renamed to\n`artistCredits` , since it is a list of credits and is referred to in the\nplural form throughout the MusicBrainz documentation. This field is deprecated\nand will be removed in a major release in the future. Use the equivalent\n`artistCredits` field.")
2016-12-11 20:32:58 +00:00
2018-08-04 19:04:19 +00:00
"""The main credited artist(s)."""
2016-12-11 20:32:58 +00:00
artistCredits: [ArtistCredit]
2016-11-26 01:38:32 +00:00
2018-08-04 19:04:19 +00:00
"""The date of the earliest release in the group."""
2016-11-26 01:38:32 +00:00
firstReleaseDate: Date
2018-08-04 19:04:19 +00:00
"""
The [type ](https://musicbrainz.org/doc/Release_Group/Type )
of a release group describes what kind of releases the release group represents,
e.g. album, single, soundtrack, compilation, etc. A release group can have a
“main” type and an unspecified number of additional types.
"""
2016-11-26 01:38:32 +00:00
primaryType: ReleaseGroupType
2018-08-04 19:04:19 +00:00
"""
The MBID associated with the value of the `primaryType`
field.
"""
2016-11-26 01:38:32 +00:00
primaryTypeID: MBID
2018-08-04 19:04:19 +00:00
"""
Additional [types ](https://musicbrainz.org/doc/Release_Group/Type )
that apply to this release group.
"""
2016-11-26 01:38:32 +00:00
secondaryTypes: [ReleaseGroupType]
2018-08-04 19:04:19 +00:00
"""
The MBIDs associated with the values of the `secondaryTypes`
field.
"""
2016-11-26 01:38:32 +00:00
secondaryTypeIDs: [MBID]
2018-08-04 19:04:19 +00:00
"""A list of artists linked to this entity."""
2016-11-26 01:38:32 +00:00
artists(after: String, first: Int): ArtistConnection
2018-08-04 19:04:19 +00:00
"""A list of releases linked to this entity."""
2016-11-29 03:14:43 +00:00
releases(
2018-08-04 19:04:19 +00:00
"""Filter by one or more release group types."""
2016-11-29 03:14:43 +00:00
type: [ReleaseGroupType]
2018-08-04 19:04:19 +00:00
"""Filter by one or more release statuses."""
2016-11-29 03:14:43 +00:00
status: [ReleaseStatus]
2016-12-12 05:09:37 +00:00
after: String
first: Int
2016-11-29 03:14:43 +00:00
): ReleaseConnection
2016-11-26 01:38:32 +00:00
2018-08-04 19:04:19 +00:00
"""Relationships between this entity and other entitites."""
2016-11-26 01:38:32 +00:00
relationships: Relationships
2016-11-28 13:49:04 +00:00
2018-08-04 19:04:19 +00:00
"""A list of collections containing this entity."""
2016-12-12 08:55:15 +00:00
collections(after: String, first: Int): CollectionConnection
2018-08-04 19:04:19 +00:00
"""The rating users have given to this entity."""
2016-12-14 04:50:38 +00:00
rating: Rating
2018-08-04 19:04:19 +00:00
"""A list of tags linked to this entity."""
2016-11-28 13:49:04 +00:00
tags(after: String, first: Int): TagConnection
2016-11-26 01:38:32 +00:00
}
2018-08-04 19:04:19 +00:00
"""A connection to a list of items."""
2016-11-26 01:38:32 +00:00
type ReleaseGroupConnection {
2018-08-04 19:04:19 +00:00
"""Information to aid in pagination."""
2016-11-26 01:38:32 +00:00
pageInfo: PageInfo!
2018-08-04 19:04:19 +00:00
"""A list of edges."""
2016-11-26 01:38:32 +00:00
edges: [ReleaseGroupEdge]
2016-11-28 13:49:04 +00:00
2018-08-04 19:04:19 +00:00
"""
A list of nodes in the connection (without going through the
`edges` field).
"""
2017-10-07 02:43:15 +00:00
nodes: [ReleaseGroup]
2018-08-04 19:04:19 +00:00
"""
A count of the total number of items in this connection,
ignoring pagination.
"""
2016-11-28 13:49:04 +00:00
totalCount: Int
2016-11-26 01:38:32 +00:00
}
2018-08-04 19:04:19 +00:00
"""An edge in a connection."""
2016-11-26 01:38:32 +00:00
type ReleaseGroupEdge {
2018-08-04 19:04:19 +00:00
"""The item at the end of the edge"""
2016-11-26 01:38:32 +00:00
node: ReleaseGroup
2018-08-04 19:04:19 +00:00
"""A cursor for use in pagination"""
2016-11-26 01:38:32 +00:00
cursor: String!
2016-11-28 14:44:00 +00:00
2018-08-04 19:04:19 +00:00
"""
The relevancy score (0– 100) assigned by the search engine, if
these results were found through a search.
"""
2016-11-28 14:44:00 +00:00
score: Int
2016-11-26 01:38:32 +00:00
}
2018-08-04 19:04:19 +00:00
"""
A type used to describe release groups, e.g. album, single, EP,
etc.
"""
2016-11-26 01:38:32 +00:00
enum ReleaseGroupType {
2018-08-04 19:04:19 +00:00
"""
An album, perhaps better defined as a “Long Play” (LP)
release, generally consists of previously unreleased material (unless this type
is combined with secondary types which change that, such as “Compilation”). This
includes album re-issues, with or without bonus tracks.
"""
2016-11-26 01:38:32 +00:00
ALBUM
2018-08-04 19:04:19 +00:00
"""
A single typically has one main song and possibly a handful
of additional tracks or remixes of the main track. A single is usually named
after its main song.
"""
2016-11-26 01:38:32 +00:00
SINGLE
2018-08-04 19:04:19 +00:00
"""
An EP is a so-called “Extended Play” release and often
contains the letters EP in the title. Generally an EP will be shorter than a
full length release (an LP or “Long Play”) and the tracks are usually exclusive
to the EP, in other words the tracks don’ t come from a previously issued
release. EP is fairly difficult to define; usually it should only be assumed
that a release is an EP if the artist defines it as such.
"""
2016-11-26 01:38:32 +00:00
EP
2018-08-04 19:04:19 +00:00
"""Any release that does not fit any of the other categories."""
2016-11-26 01:38:32 +00:00
OTHER
2018-08-04 19:04:19 +00:00
"""
An episodic release that was originally broadcast via radio,
television, or the Internet, including podcasts.
"""
2016-11-26 01:38:32 +00:00
BROADCAST
2018-08-04 19:04:19 +00:00
"""
A compilation is a collection of previously released tracks
by one or more artists.
"""
2016-11-26 01:38:32 +00:00
COMPILATION
2018-08-04 19:04:19 +00:00
"""
A soundtrack is the musical score to a movie, TV series,
stage show, computer game, etc.
"""
2016-11-26 01:38:32 +00:00
SOUNDTRACK
2018-08-04 19:04:19 +00:00
"""A non-music spoken word release."""
2016-11-26 01:38:32 +00:00
SPOKENWORD
2018-08-04 19:04:19 +00:00
"""
An interview release contains an interview, generally with
an artist.
"""
2016-11-26 01:38:32 +00:00
INTERVIEW
2018-08-04 19:04:19 +00:00
"""An audiobook is a book read by a narrator without music."""
2016-11-26 01:38:32 +00:00
AUDIOBOOK
2018-08-04 19:04:19 +00:00
"""A release that was recorded live."""
2016-11-26 01:38:32 +00:00
LIVE
2018-08-04 19:04:19 +00:00
"""
A release that was (re)mixed from previously released
material.
"""
2016-11-26 01:38:32 +00:00
REMIX
2018-08-04 19:04:19 +00:00
"""
A DJ-mix is a sequence of several recordings played one
after the other, each one modified so that they blend together into a continuous
flow of music. A DJ mix release requires that the recordings be modified in some
manner, and the DJ who does this modification is usually (although not always)
credited in a fairly prominent way.
"""
2016-11-26 01:38:32 +00:00
DJMIX
2018-08-04 19:04:19 +00:00
"""
Promotional in nature (but not necessarily free), mixtapes
and street albums are often released by artists to promote new artists, or
upcoming studio albums by prominent artists. They are also sometimes used to
keep fans’ attention between studio releases and are most common in rap & hip
hop genres. They are often not sanctioned by the artist’ s label, may lack proper
sample or song clearances and vary widely in production and recording quality.
While mixtapes are generally DJ-mixed, they are distinct from commercial DJ
mixes (which are usually deemed compilations) and are defined by having a
significant proportion of new material, including original production or
original vocals over top of other artists’ instrumentals. They are distinct from
demos in that they are designed for release directly to the public and fans, not
to labels.
"""
2016-11-26 01:38:32 +00:00
MIXTAPE
2018-08-04 19:04:19 +00:00
"""
A release that was recorded for limited circulation or
reference use rather than for general public release.
"""
2016-11-26 01:38:32 +00:00
DEMO
2018-08-04 19:04:19 +00:00
"""A non-album track (special case)."""
2016-11-26 01:38:32 +00:00
NAT
}
2018-08-04 19:04:19 +00:00
"""
A type used to describe the status of releases, e.g. official,
bootleg, etc.
"""
2016-11-26 01:38:32 +00:00
enum ReleaseStatus {
2018-08-04 19:04:19 +00:00
"""
Any release officially sanctioned by the artist and/or their
record company. (Most releases will fit into this category.)
"""
2016-11-26 01:38:32 +00:00
OFFICIAL
2018-08-04 19:04:19 +00:00
"""
A giveaway release or a release intended to promote an
upcoming official release, e.g. prerelease albums or releases included with a
magazine.
"""
2016-11-26 01:38:32 +00:00
PROMOTION
2018-08-04 19:04:19 +00:00
"""
An unofficial/underground release that was not sanctioned by
the artist and/or the record company.
"""
2016-11-26 01:38:32 +00:00
BOOTLEG
2018-08-04 19:04:19 +00:00
"""
A pseudo-release is a duplicate release for
translation/transliteration purposes.
"""
2016-11-26 01:38:32 +00:00
PSEUDORELEASE
}
2018-08-04 19:04:19 +00:00
"""A search for MusicBrainz entities using Lucene query syntax."""
2016-11-26 01:38:32 +00:00
type SearchQuery {
2018-08-04 19:04:19 +00:00
"""Search for area entities matching the given query."""
2016-11-28 13:49:04 +00:00
areas(
2018-08-04 19:04:19 +00:00
"""
The query terms, in Lucene search syntax. See [examples
and search fields](https://musicbrainz.org/doc/Development/XML_Web_Service/Version_2/Search).
"""
2016-11-28 13:49:04 +00:00
query: String!
after: String
first: Int
): AreaConnection
2016-11-26 01:38:32 +00:00
2018-08-04 19:04:19 +00:00
"""Search for artist entities matching the given query."""
2016-11-28 13:49:04 +00:00
artists(
2018-08-04 19:04:19 +00:00
"""
The query terms, in Lucene search syntax. See [examples
and search fields](https://musicbrainz.org/doc/Development/XML_Web_Service/Version_2/Search).
"""
2016-11-28 13:49:04 +00:00
query: String!
after: String
first: Int
): ArtistConnection
2018-08-04 19:04:19 +00:00
"""Search for event entities matching the given query."""
2016-11-28 13:49:04 +00:00
events(
2018-08-04 19:04:19 +00:00
"""
The query terms, in Lucene search syntax. See [examples
and search fields](https://musicbrainz.org/doc/Development/XML_Web_Service/Version_2/Search).
"""
2016-11-28 13:49:04 +00:00
query: String!
after: String
first: Int
): EventConnection
2018-08-04 19:04:19 +00:00
"""Search for instrument entities matching the given query."""
2016-11-28 13:49:04 +00:00
instruments(
2018-08-04 19:04:19 +00:00
"""
The query terms, in Lucene search syntax. See [examples
and search fields](https://musicbrainz.org/doc/Development/XML_Web_Service/Version_2/Search).
"""
2016-11-28 13:49:04 +00:00
query: String!
after: String
first: Int
): InstrumentConnection
2016-11-26 01:38:32 +00:00
2018-08-04 19:04:19 +00:00
"""Search for label entities matching the given query."""
2016-11-28 13:49:04 +00:00
labels(
2018-08-04 19:04:19 +00:00
"""
The query terms, in Lucene search syntax. See [examples
and search fields](https://musicbrainz.org/doc/Development/XML_Web_Service/Version_2/Search).
"""
2016-11-28 13:49:04 +00:00
query: String!
after: String
first: Int
): LabelConnection
2016-11-26 01:38:32 +00:00
2018-08-04 19:04:19 +00:00
"""Search for place entities matching the given query."""
2016-11-28 13:49:04 +00:00
places(
2018-08-04 19:04:19 +00:00
"""
The query terms, in Lucene search syntax. See [examples
and search fields](https://musicbrainz.org/doc/Development/XML_Web_Service/Version_2/Search).
"""
2016-11-28 13:49:04 +00:00
query: String!
after: String
first: Int
): PlaceConnection
2016-11-26 01:38:32 +00:00
2018-08-04 19:04:19 +00:00
"""Search for recording entities matching the given query."""
2016-11-28 13:49:04 +00:00
recordings(
2018-08-04 19:04:19 +00:00
"""
The query terms, in Lucene search syntax. See [examples
and search fields](https://musicbrainz.org/doc/Development/XML_Web_Service/Version_2/Search).
"""
2016-11-28 13:49:04 +00:00
query: String!
after: String
first: Int
): RecordingConnection
2016-11-26 01:38:32 +00:00
2018-08-04 19:04:19 +00:00
"""Search for release entities matching the given query."""
2016-11-28 13:49:04 +00:00
releases(
2018-08-04 19:04:19 +00:00
"""
The query terms, in Lucene search syntax. See [examples
and search fields](https://musicbrainz.org/doc/Development/XML_Web_Service/Version_2/Search).
"""
2016-11-28 13:49:04 +00:00
query: String!
after: String
first: Int
): ReleaseConnection
2016-11-26 01:38:32 +00:00
2018-08-04 19:04:19 +00:00
"""Search for release group entities matching the given query."""
2016-11-28 13:49:04 +00:00
releaseGroups(
2018-08-04 19:04:19 +00:00
"""
The query terms, in Lucene search syntax. See [examples
and search fields](https://musicbrainz.org/doc/Development/XML_Web_Service/Version_2/Search).
"""
2016-11-28 13:49:04 +00:00
query: String!
after: String
first: Int
): ReleaseGroupConnection
2018-08-04 19:04:19 +00:00
"""Search for series entities matching the given query."""
2016-11-28 13:49:04 +00:00
series(
2018-08-04 19:04:19 +00:00
"""
The query terms, in Lucene search syntax. See [examples
and search fields](https://musicbrainz.org/doc/Development/XML_Web_Service/Version_2/Search).
"""
2016-11-28 13:49:04 +00:00
query: String!
after: String
first: Int
): SeriesConnection
2016-11-26 01:38:32 +00:00
2018-08-04 19:04:19 +00:00
"""Search for work entities matching the given query."""
2016-11-28 13:49:04 +00:00
works(
2018-08-04 19:04:19 +00:00
"""
The query terms, in Lucene search syntax. See [examples
and search fields](https://musicbrainz.org/doc/Development/XML_Web_Service/Version_2/Search).
"""
2016-11-28 13:49:04 +00:00
query: String!
after: String
first: Int
): WorkConnection
2016-11-26 01:38:32 +00:00
}
2018-08-04 19:04:19 +00:00
"""
A [series ](https://musicbrainz.org/doc/Series ) is a sequence of
separate release groups, releases, recordings, works or events with a common
theme.
"""
type Series implements Node & Entity {
"""The ID of an object"""
2016-11-26 01:38:32 +00:00
id: ID!
2018-08-04 19:04:19 +00:00
"""The MBID of the entity."""
2016-11-26 01:38:32 +00:00
mbid: MBID!
2018-08-04 19:04:19 +00:00
"""The official name of the entity."""
2016-11-26 01:38:32 +00:00
name: String
2018-08-04 19:04:19 +00:00
"""A comment used to help distinguish identically named entitites."""
2016-11-26 01:38:32 +00:00
disambiguation: String
2018-08-04 19:04:19 +00:00
"""
The type primarily describes what type of entity the series
contains.
"""
2016-11-26 01:38:32 +00:00
type: String
2018-08-04 19:04:19 +00:00
"""
The MBID associated with the value of the `type`
field.
"""
2016-11-26 01:38:32 +00:00
typeID: MBID
2016-11-28 13:49:04 +00:00
2018-08-04 19:04:19 +00:00
"""Relationships between this entity and other entitites."""
2016-11-28 13:49:04 +00:00
relationships: Relationships
2018-08-04 19:04:19 +00:00
"""A list of collections containing this entity."""
2016-12-12 08:55:15 +00:00
collections(after: String, first: Int): CollectionConnection
2018-08-04 19:04:19 +00:00
"""A list of tags linked to this entity."""
2016-11-28 13:49:04 +00:00
tags(after: String, first: Int): TagConnection
}
2018-08-04 19:04:19 +00:00
"""A connection to a list of items."""
2016-11-28 13:49:04 +00:00
type SeriesConnection {
2018-08-04 19:04:19 +00:00
"""Information to aid in pagination."""
2016-11-28 13:49:04 +00:00
pageInfo: PageInfo!
2018-08-04 19:04:19 +00:00
"""A list of edges."""
2016-11-28 13:49:04 +00:00
edges: [SeriesEdge]
2018-08-04 19:04:19 +00:00
"""
A list of nodes in the connection (without going through the
`edges` field).
"""
2017-10-07 02:43:15 +00:00
nodes: [Series]
2018-08-04 19:04:19 +00:00
"""
A count of the total number of items in this connection,
ignoring pagination.
"""
2016-11-28 13:49:04 +00:00
totalCount: Int
}
2018-08-04 19:04:19 +00:00
"""An edge in a connection."""
2016-11-28 13:49:04 +00:00
type SeriesEdge {
2018-08-04 19:04:19 +00:00
"""The item at the end of the edge"""
2016-11-28 13:49:04 +00:00
node: Series
2018-08-04 19:04:19 +00:00
"""A cursor for use in pagination"""
2016-11-28 13:49:04 +00:00
cursor: String!
2016-11-28 14:44:00 +00:00
2018-08-04 19:04:19 +00:00
"""
The relevancy score (0– 100) assigned by the search engine, if
these results were found through a search.
"""
2016-11-28 14:44:00 +00:00
score: Int
2016-11-28 13:49:04 +00:00
}
2018-08-04 19:04:19 +00:00
"""
[Tags ](https://musicbrainz.org/tags ) are a way to mark entities
with extra information – for example, the genres that apply to an artist,
release, or recording.
"""
2016-11-28 13:49:04 +00:00
type Tag {
2018-08-04 19:04:19 +00:00
"""The tag label."""
2016-11-28 13:49:04 +00:00
name: String!
2018-08-04 19:04:19 +00:00
"""How many times this tag has been applied to the entity."""
2016-11-28 13:49:04 +00:00
count: Int
}
2018-08-04 19:04:19 +00:00
"""A connection to a list of items."""
2016-11-28 13:49:04 +00:00
type TagConnection {
2018-08-04 19:04:19 +00:00
"""Information to aid in pagination."""
2016-11-28 13:49:04 +00:00
pageInfo: PageInfo!
2018-08-04 19:04:19 +00:00
"""A list of edges."""
2016-11-28 13:49:04 +00:00
edges: [TagEdge]
2018-08-04 19:04:19 +00:00
"""
A list of nodes in the connection (without going through the
`edges` field).
"""
2017-10-07 02:43:15 +00:00
nodes: [Tag]
2018-08-04 19:04:19 +00:00
"""
A count of the total number of items in this connection,
ignoring pagination.
"""
2016-11-28 13:49:04 +00:00
totalCount: Int
}
2018-08-04 19:04:19 +00:00
"""An edge in a connection."""
2016-11-28 13:49:04 +00:00
type TagEdge {
2018-08-04 19:04:19 +00:00
"""The item at the end of the edge"""
2016-11-28 13:49:04 +00:00
node: Tag
2018-08-04 19:04:19 +00:00
"""A cursor for use in pagination"""
2016-11-28 13:49:04 +00:00
cursor: String!
2016-11-28 14:44:00 +00:00
2018-08-04 19:04:19 +00:00
"""
The relevancy score (0– 100) assigned by the search engine, if
these results were found through a search.
"""
2016-11-28 14:44:00 +00:00
score: Int
2016-11-26 01:38:32 +00:00
}
2018-08-04 19:04:19 +00:00
"""A time of day, in 24-hour hh:mm notation."""
2016-11-26 01:38:32 +00:00
scalar Time
2018-08-04 19:04:19 +00:00
"""
A [URL ](https://musicbrainz.org/doc/URL ) pointing to a resource
external to MusicBrainz, i.e. an official homepage, a site where music can be
acquired, an entry in another database, etc.
"""
type URL implements Node & Entity {
"""The ID of an object"""
2016-11-26 01:38:32 +00:00
id: ID!
2018-08-04 19:04:19 +00:00
"""The MBID of the entity."""
2016-11-26 01:38:32 +00:00
mbid: MBID!
2018-08-04 19:04:19 +00:00
"""The actual URL string."""
2016-11-26 01:38:32 +00:00
resource: URLString!
2018-08-04 19:04:19 +00:00
"""Relationships between this entity and other entitites."""
2016-11-26 01:38:32 +00:00
relationships: Relationships
}
2018-08-04 19:04:19 +00:00
"""A web address."""
2016-11-26 01:38:32 +00:00
scalar URLString
2018-08-04 19:04:19 +00:00
"""
A [work ](https://musicbrainz.org/doc/Work ) is a distinct
intellectual or artistic creation, which can be expressed in the form of one or
more audio recordings.
"""
type Work implements Node & Entity {
"""The ID of an object"""
2016-11-26 01:38:32 +00:00
id: ID!
2018-08-04 19:04:19 +00:00
"""The MBID of the entity."""
2016-11-26 01:38:32 +00:00
mbid: MBID!
2018-08-04 19:04:19 +00:00
"""The official title of the entity."""
2016-11-26 01:38:32 +00:00
title: String
2018-08-04 19:04:19 +00:00
"""A comment used to help distinguish identically named entitites."""
2016-11-26 01:38:32 +00:00
disambiguation: String
2018-08-04 19:04:19 +00:00
"""
[Aliases ](https://musicbrainz.org/doc/Aliases ) are used to store
alternate names or misspellings.
"""
2016-11-28 13:49:04 +00:00
aliases: [Alias]
2018-08-04 19:04:19 +00:00
"""
A list of [ISWCs ](https://musicbrainz.org/doc/ISWC ) assigned
to the work by copyright collecting agencies.
"""
2016-11-26 01:38:32 +00:00
iswcs: [String]
2018-08-04 19:04:19 +00:00
"""The language in which the work was originally written."""
2016-11-26 01:38:32 +00:00
language: String
2018-08-04 19:04:19 +00:00
"""The type of work."""
2016-11-26 01:38:32 +00:00
type: String
2018-08-04 19:04:19 +00:00
"""
The MBID associated with the value of the `type`
field.
"""
2016-11-26 01:38:32 +00:00
typeID: MBID
2018-08-04 19:04:19 +00:00
"""A list of artists linked to this entity."""
2016-11-26 01:38:32 +00:00
artists(after: String, first: Int): ArtistConnection
2018-08-04 19:04:19 +00:00
"""Relationships between this entity and other entitites."""
2016-11-26 01:38:32 +00:00
relationships: Relationships
2016-11-28 13:49:04 +00:00
2018-08-04 19:04:19 +00:00
"""A list of collections containing this entity."""
2016-12-12 08:55:15 +00:00
collections(after: String, first: Int): CollectionConnection
2018-08-04 19:04:19 +00:00
"""The rating users have given to this entity."""
2016-12-14 04:50:38 +00:00
rating: Rating
2018-08-04 19:04:19 +00:00
"""A list of tags linked to this entity."""
2016-11-28 13:49:04 +00:00
tags(after: String, first: Int): TagConnection
2016-11-26 01:38:32 +00:00
}
2018-08-04 19:04:19 +00:00
"""A connection to a list of items."""
2016-11-26 01:38:32 +00:00
type WorkConnection {
2018-08-04 19:04:19 +00:00
"""Information to aid in pagination."""
2016-11-26 01:38:32 +00:00
pageInfo: PageInfo!
2018-08-04 19:04:19 +00:00
"""A list of edges."""
2016-11-26 01:38:32 +00:00
edges: [WorkEdge]
2016-11-28 13:49:04 +00:00
2018-08-04 19:04:19 +00:00
"""
A list of nodes in the connection (without going through the
`edges` field).
"""
2017-10-07 02:43:15 +00:00
nodes: [Work]
2018-08-04 19:04:19 +00:00
"""
A count of the total number of items in this connection,
ignoring pagination.
"""
2016-11-28 13:49:04 +00:00
totalCount: Int
2016-11-26 01:38:32 +00:00
}
2018-08-04 19:04:19 +00:00
"""An edge in a connection."""
2016-11-26 01:38:32 +00:00
type WorkEdge {
2018-08-04 19:04:19 +00:00
"""The item at the end of the edge"""
2016-11-26 01:38:32 +00:00
node: Work
2018-08-04 19:04:19 +00:00
"""A cursor for use in pagination"""
2016-11-26 01:38:32 +00:00
cursor: String!
2016-11-28 14:44:00 +00:00
2018-08-04 19:04:19 +00:00
"""
The relevancy score (0– 100) assigned by the search engine, if
these results were found through a search.
"""
2016-11-28 14:44:00 +00:00
score: Int
2016-11-26 01:38:32 +00:00
}
2016-11-30 02:18:50 +00:00
```