Reorder args so connection pagination args come last

This commit is contained in:
Brian Beck 2016-12-11 21:09:37 -08:00
parent fb6d9d8b98
commit 441c9cd8b8
5 changed files with 506 additions and 525 deletions

View file

@ -72,14 +72,13 @@ type Area implements Node, Entity {
# A list of releases linked to this entity.
releases(
after: String
first: Int
# Filter by one or more release group types.
type: [ReleaseGroupType]
# Filter by one or more release statuses.
status: [ReleaseStatus]
after: String
first: Int
): ReleaseConnection
# Relationships between this entity and other entitites.
@ -190,23 +189,21 @@ type Artist implements Node, Entity {
# A list of releases linked to this entity.
releases(
after: String
first: Int
# Filter by one or more release group types.
type: [ReleaseGroupType]
# Filter by one or more release statuses.
status: [ReleaseStatus]
after: String
first: Int
): ReleaseConnection
# A list of release groups linked to this entity.
releaseGroups(
after: String
first: Int
# Filter by one or more release group types.
type: [ReleaseGroupType]
after: String
first: Int
): ReleaseGroupConnection
# A list of works linked to this entity.
@ -274,18 +271,14 @@ scalar ASIN
type BrowseQuery {
# Browse area entities linked to the given arguments.
areas(
after: String
first: Int
# The MBID of a collection in which the entity is found.
collection: MBID
after: String
first: Int
): AreaConnection
# Browse artist entities linked to the given arguments.
artists(
after: String
first: Int
# The MBID of an area to which the entity is linked.
area: MBID
@ -303,13 +296,12 @@ type BrowseQuery {
# The MBID of a work to which the entity is linked.
work: MBID
after: String
first: Int
): ArtistConnection
# Browse collection entities linked to the given arguments.
collections(
after: String
first: Int
# The MBID of an area to which the entity is linked.
area: MBID
@ -339,13 +331,12 @@ type BrowseQuery {
# The MBID of a work to which the entity is linked.
work: MBID
after: String
first: Int
): CollectionConnection
# Browse event entities linked to the given arguments.
events(
after: String
first: Int
# The MBID of an area to which the entity is linked.
area: MBID
@ -357,13 +348,12 @@ type BrowseQuery {
# The MBID of a place to which the entity is linked.
place: MBID
after: String
first: Int
): EventConnection
# Browse label entities linked to the given arguments.
labels(
after: String
first: Int
# The MBID of an area to which the entity is linked.
area: MBID
@ -372,25 +362,23 @@ type BrowseQuery {
# The MBID of a release to which the entity is linked.
release: MBID
after: String
first: Int
): LabelConnection
# Browse place entities linked to the given arguments.
places(
after: String
first: Int
# The MBID of an area to which the entity is linked.
area: MBID
# The MBID of a collection in which the entity is found.
collection: MBID
after: String
first: Int
): PlaceConnection
# Browse recording entities linked to the given arguments.
recordings(
after: String
first: Int
# The MBID of an artist to which the entity is linked.
artist: MBID
@ -403,13 +391,12 @@ type BrowseQuery {
# The [International Standard Recording Code](https://musicbrainz.org/doc/ISRC)
# (ISRC) of the recording.
isrc: ISRC
after: String
first: Int
): RecordingConnection
# Browse release entities linked to the given arguments.
releases(
after: String
first: Int
# The MBID of an area to which the entity is linked.
area: MBID
@ -444,13 +431,12 @@ type BrowseQuery {
# A [disc ID](https://musicbrainz.org/doc/Disc_ID)
# associated with the release.
discID: DiscID
after: String
first: Int
): ReleaseConnection
# Browse release group entities linked to the given arguments.
releaseGroups(
after: String
first: Int
# The MBID of an artist to which the entity is linked.
artist: MBID
@ -462,13 +448,12 @@ type BrowseQuery {
# Filter by one or more release group types.
type: [ReleaseGroupType]
after: String
first: Int
): ReleaseGroupConnection
# Browse work entities linked to the given arguments.
works(
after: String
first: Int
# The MBID of an artist to which the entity is linked.
artist: MBID
@ -478,6 +463,8 @@ type BrowseQuery {
# The [International Standard Musical Work Code](https://musicbrainz.org/doc/ISWC)
# (ISWC) of the work.
iswc: ISWC
after: String
first: Int
): WorkConnection
}
@ -526,23 +513,21 @@ type Collection implements Node, Entity {
# A list of releases linked to this entity.
releases(
after: String
first: Int
# Filter by one or more release group types.
type: [ReleaseGroupType]
# Filter by one or more release statuses.
status: [ReleaseStatus]
after: String
first: Int
): ReleaseConnection
# A list of release groups linked to this entity.
releaseGroups(
after: String
first: Int
# Filter by one or more release group types.
type: [ReleaseGroupType]
after: String
first: Int
): ReleaseGroupConnection
# A list of works linked to this entity.
@ -835,14 +820,13 @@ type Label implements Node, Entity {
# A list of releases linked to this entity.
releases(
after: String
first: Int
# Filter by one or more release group types.
type: [ReleaseGroupType]
# Filter by one or more release statuses.
status: [ReleaseStatus]
after: String
first: Int
): ReleaseConnection
# Relationships between this entity and other entitites.
@ -1151,14 +1135,13 @@ type Recording implements Node, Entity {
# A list of releases linked to this entity.
releases(
after: String
first: Int
# Filter by one or more release group types.
type: [ReleaseGroupType]
# Filter by one or more release statuses.
status: [ReleaseStatus]
after: String
first: Int
): ReleaseConnection
# Relationships between this entity and other entitites.
@ -1564,11 +1547,10 @@ type Release implements Node, Entity {
# A list of release groups linked to this entity.
releaseGroups(
after: String
first: Int
# Filter by one or more release group types.
type: [ReleaseGroupType]
after: String
first: Int
): ReleaseGroupConnection
# Relationships between this entity and other entitites.
@ -1668,14 +1650,13 @@ type ReleaseGroup implements Node, Entity {
# A list of releases linked to this entity.
releases(
after: String
first: Int
# Filter by one or more release group types.
type: [ReleaseGroupType]
# Filter by one or more release statuses.
status: [ReleaseStatus]
after: String
first: Int
): ReleaseConnection
# Relationships between this entity and other entitites.

View file

@ -339,16 +339,6 @@ the codes assigned by ISO to countries and subdivisions.
A list of releases linked to this entity.
</td>
</tr>
<tr>
<td align="right" valign="top">after</td>
<td valign="top"><a href="#string">String</a></td>
<td></td>
</tr>
<tr>
<td align="right" valign="top">first</td>
<td valign="top"><a href="#int">Int</a></td>
<td></td>
</tr>
<tr>
<td align="right" valign="top">type</td>
<td valign="top">[<a href="#releasegrouptype">ReleaseGroupType</a>]</td>
@ -359,6 +349,16 @@ the codes assigned by ISO to countries and subdivisions.
<td valign="top">[<a href="#releasestatus">ReleaseStatus</a>]</td>
<td>Filter by one or more release statuses.</td>
</tr>
<tr>
<td align="right" valign="top">after</td>
<td valign="top"><a href="#string">String</a></td>
<td></td>
</tr>
<tr>
<td align="right" valign="top">first</td>
<td valign="top"><a href="#int">Int</a></td>
<td></td>
</tr>
<tr>
<td valign="top"><strong>relationships</strong> </td>
<td valign="top"><a href="#relationships">Relationships</a></td>
@ -626,16 +626,6 @@ field.
A list of releases linked to this entity.
</td>
</tr>
<tr>
<td align="right" valign="top">after</td>
<td valign="top"><a href="#string">String</a></td>
<td></td>
</tr>
<tr>
<td align="right" valign="top">first</td>
<td valign="top"><a href="#int">Int</a></td>
<td></td>
</tr>
<tr>
<td align="right" valign="top">type</td>
<td valign="top">[<a href="#releasegrouptype">ReleaseGroupType</a>]</td>
@ -646,13 +636,6 @@ field.
<td valign="top">[<a href="#releasestatus">ReleaseStatus</a>]</td>
<td>Filter by one or more release statuses.</td>
</tr>
<tr>
<td valign="top"><strong>releaseGroups</strong> </td>
<td valign="top"><a href="#releasegroupconnection">ReleaseGroupConnection</a></td>
<td>
A list of release groups linked to this entity.
</td>
</tr>
<tr>
<td align="right" valign="top">after</td>
<td valign="top"><a href="#string">String</a></td>
@ -663,11 +646,28 @@ field.
<td valign="top"><a href="#int">Int</a></td>
<td></td>
</tr>
<tr>
<td valign="top"><strong>releaseGroups</strong> </td>
<td valign="top"><a href="#releasegroupconnection">ReleaseGroupConnection</a></td>
<td>
A list of release groups linked to this entity.
</td>
</tr>
<tr>
<td align="right" valign="top">type</td>
<td valign="top">[<a href="#releasegrouptype">ReleaseGroupType</a>]</td>
<td>Filter by one or more release group types.</td>
</tr>
<tr>
<td align="right" valign="top">after</td>
<td valign="top"><a href="#string">String</a></td>
<td></td>
</tr>
<tr>
<td align="right" valign="top">first</td>
<td valign="top"><a href="#int">Int</a></td>
<td></td>
</tr>
<tr>
<td valign="top"><strong>works</strong> </td>
<td valign="top"><a href="#workconnection">WorkConnection</a></td>
@ -841,6 +841,11 @@ entity.
Browse area entities linked to the given arguments.
</td>
</tr>
<tr>
<td align="right" valign="top">collection</td>
<td valign="top"><a href="#mbid">MBID</a></td>
<td>The MBID of a collection in which the entity is found.</td>
</tr>
<tr>
<td align="right" valign="top">after</td>
<td valign="top"><a href="#string">String</a></td>
@ -851,11 +856,6 @@ entity.
<td valign="top"><a href="#int">Int</a></td>
<td></td>
</tr>
<tr>
<td align="right" valign="top">collection</td>
<td valign="top"><a href="#mbid">MBID</a></td>
<td>The MBID of a collection in which the entity is found.</td>
</tr>
<tr>
<td valign="top"><strong>artists</strong> </td>
<td valign="top"><a href="#artistconnection">ArtistConnection</a></td>
@ -863,16 +863,6 @@ entity.
Browse artist entities linked to the given arguments.
</td>
</tr>
<tr>
<td align="right" valign="top">after</td>
<td valign="top"><a href="#string">String</a></td>
<td></td>
</tr>
<tr>
<td align="right" valign="top">first</td>
<td valign="top"><a href="#int">Int</a></td>
<td></td>
</tr>
<tr>
<td align="right" valign="top">area</td>
<td valign="top"><a href="#mbid">MBID</a></td>
@ -903,13 +893,6 @@ entity.
<td valign="top"><a href="#mbid">MBID</a></td>
<td>The MBID of a work to which the entity is linked.</td>
</tr>
<tr>
<td valign="top"><strong>collections</strong> </td>
<td valign="top"><a href="#collectionconnection">CollectionConnection</a></td>
<td>
Browse collection entities linked to the given arguments.
</td>
</tr>
<tr>
<td align="right" valign="top">after</td>
<td valign="top"><a href="#string">String</a></td>
@ -920,6 +903,13 @@ entity.
<td valign="top"><a href="#int">Int</a></td>
<td></td>
</tr>
<tr>
<td valign="top"><strong>collections</strong> </td>
<td valign="top"><a href="#collectionconnection">CollectionConnection</a></td>
<td>
Browse collection entities linked to the given arguments.
</td>
</tr>
<tr>
<td align="right" valign="top">area</td>
<td valign="top"><a href="#mbid">MBID</a></td>
@ -970,13 +960,6 @@ entity.
<td valign="top"><a href="#mbid">MBID</a></td>
<td>The MBID of a work to which the entity is linked.</td>
</tr>
<tr>
<td valign="top"><strong>events</strong> </td>
<td valign="top"><a href="#eventconnection">EventConnection</a></td>
<td>
Browse event entities linked to the given arguments.
</td>
</tr>
<tr>
<td align="right" valign="top">after</td>
<td valign="top"><a href="#string">String</a></td>
@ -987,6 +970,13 @@ entity.
<td valign="top"><a href="#int">Int</a></td>
<td></td>
</tr>
<tr>
<td valign="top"><strong>events</strong> </td>
<td valign="top"><a href="#eventconnection">EventConnection</a></td>
<td>
Browse event entities linked to the given arguments.
</td>
</tr>
<tr>
<td align="right" valign="top">area</td>
<td valign="top"><a href="#mbid">MBID</a></td>
@ -1007,13 +997,6 @@ entity.
<td valign="top"><a href="#mbid">MBID</a></td>
<td>The MBID of a place to which the entity is linked.</td>
</tr>
<tr>
<td valign="top"><strong>labels</strong> </td>
<td valign="top"><a href="#labelconnection">LabelConnection</a></td>
<td>
Browse label entities linked to the given arguments.
</td>
</tr>
<tr>
<td align="right" valign="top">after</td>
<td valign="top"><a href="#string">String</a></td>
@ -1024,6 +1007,13 @@ entity.
<td valign="top"><a href="#int">Int</a></td>
<td></td>
</tr>
<tr>
<td valign="top"><strong>labels</strong> </td>
<td valign="top"><a href="#labelconnection">LabelConnection</a></td>
<td>
Browse label entities linked to the given arguments.
</td>
</tr>
<tr>
<td align="right" valign="top">area</td>
<td valign="top"><a href="#mbid">MBID</a></td>
@ -1039,13 +1029,6 @@ entity.
<td valign="top"><a href="#mbid">MBID</a></td>
<td>The MBID of a release to which the entity is linked.</td>
</tr>
<tr>
<td valign="top"><strong>places</strong> </td>
<td valign="top"><a href="#placeconnection">PlaceConnection</a></td>
<td>
Browse place entities linked to the given arguments.
</td>
</tr>
<tr>
<td align="right" valign="top">after</td>
<td valign="top"><a href="#string">String</a></td>
@ -1056,6 +1039,13 @@ entity.
<td valign="top"><a href="#int">Int</a></td>
<td></td>
</tr>
<tr>
<td valign="top"><strong>places</strong> </td>
<td valign="top"><a href="#placeconnection">PlaceConnection</a></td>
<td>
Browse place entities linked to the given arguments.
</td>
</tr>
<tr>
<td align="right" valign="top">area</td>
<td valign="top"><a href="#mbid">MBID</a></td>
@ -1066,13 +1056,6 @@ entity.
<td valign="top"><a href="#mbid">MBID</a></td>
<td>The MBID of a collection in which the entity is found.</td>
</tr>
<tr>
<td valign="top"><strong>recordings</strong> </td>
<td valign="top"><a href="#recordingconnection">RecordingConnection</a></td>
<td>
Browse recording entities linked to the given arguments.
</td>
</tr>
<tr>
<td align="right" valign="top">after</td>
<td valign="top"><a href="#string">String</a></td>
@ -1083,6 +1066,13 @@ entity.
<td valign="top"><a href="#int">Int</a></td>
<td></td>
</tr>
<tr>
<td valign="top"><strong>recordings</strong> </td>
<td valign="top"><a href="#recordingconnection">RecordingConnection</a></td>
<td>
Browse recording entities linked to the given arguments.
</td>
</tr>
<tr>
<td align="right" valign="top">artist</td>
<td valign="top"><a href="#mbid">MBID</a></td>
@ -1104,13 +1094,6 @@ entity.
<td>The <a href="https://musicbrainz.org/doc/ISRC">International Standard Recording Code</a>
(ISRC) of the recording.</td>
</tr>
<tr>
<td valign="top"><strong>releases</strong> </td>
<td valign="top"><a href="#releaseconnection">ReleaseConnection</a></td>
<td>
Browse release entities linked to the given arguments.
</td>
</tr>
<tr>
<td align="right" valign="top">after</td>
<td valign="top"><a href="#string">String</a></td>
@ -1121,6 +1104,13 @@ entity.
<td valign="top"><a href="#int">Int</a></td>
<td></td>
</tr>
<tr>
<td valign="top"><strong>releases</strong> </td>
<td valign="top"><a href="#releaseconnection">ReleaseConnection</a></td>
<td>
Browse release entities linked to the given arguments.
</td>
</tr>
<tr>
<td align="right" valign="top">area</td>
<td valign="top"><a href="#mbid">MBID</a></td>
@ -1178,13 +1168,6 @@ release, but is not included in the credits for the release itself.</td>
<td>A <a href="https://musicbrainz.org/doc/Disc_ID">disc ID</a>
associated with the release.</td>
</tr>
<tr>
<td valign="top"><strong>releaseGroups</strong> </td>
<td valign="top"><a href="#releasegroupconnection">ReleaseGroupConnection</a></td>
<td>
Browse release group entities linked to the given arguments.
</td>
</tr>
<tr>
<td align="right" valign="top">after</td>
<td valign="top"><a href="#string">String</a></td>
@ -1195,6 +1178,13 @@ associated with the release.</td>
<td valign="top"><a href="#int">Int</a></td>
<td></td>
</tr>
<tr>
<td valign="top"><strong>releaseGroups</strong> </td>
<td valign="top"><a href="#releasegroupconnection">ReleaseGroupConnection</a></td>
<td>
Browse release group entities linked to the given arguments.
</td>
</tr>
<tr>
<td align="right" valign="top">artist</td>
<td valign="top"><a href="#mbid">MBID</a></td>
@ -1215,13 +1205,6 @@ associated with the release.</td>
<td valign="top">[<a href="#releasegrouptype">ReleaseGroupType</a>]</td>
<td>Filter by one or more release group types.</td>
</tr>
<tr>
<td valign="top"><strong>works</strong> </td>
<td valign="top"><a href="#workconnection">WorkConnection</a></td>
<td>
Browse work entities linked to the given arguments.
</td>
</tr>
<tr>
<td align="right" valign="top">after</td>
<td valign="top"><a href="#string">String</a></td>
@ -1232,6 +1215,13 @@ associated with the release.</td>
<td valign="top"><a href="#int">Int</a></td>
<td></td>
</tr>
<tr>
<td valign="top"><strong>works</strong> </td>
<td valign="top"><a href="#workconnection">WorkConnection</a></td>
<td>
Browse work entities linked to the given arguments.
</td>
</tr>
<tr>
<td align="right" valign="top">artist</td>
<td valign="top"><a href="#mbid">MBID</a></td>
@ -1248,6 +1238,16 @@ associated with the release.</td>
<td>The <a href="https://musicbrainz.org/doc/ISWC">International Standard Musical Work Code</a>
(ISWC) of the work.</td>
</tr>
<tr>
<td align="right" valign="top">after</td>
<td valign="top"><a href="#string">String</a></td>
<td></td>
</tr>
<tr>
<td align="right" valign="top">first</td>
<td valign="top"><a href="#int">Int</a></td>
<td></td>
</tr>
</tbody></table>
### Collection
@ -1421,16 +1421,6 @@ field.
A list of releases linked to this entity.
</td>
</tr>
<tr>
<td align="right" valign="top">after</td>
<td valign="top"><a href="#string">String</a></td>
<td></td>
</tr>
<tr>
<td align="right" valign="top">first</td>
<td valign="top"><a href="#int">Int</a></td>
<td></td>
</tr>
<tr>
<td align="right" valign="top">type</td>
<td valign="top">[<a href="#releasegrouptype">ReleaseGroupType</a>]</td>
@ -1441,13 +1431,6 @@ field.
<td valign="top">[<a href="#releasestatus">ReleaseStatus</a>]</td>
<td>Filter by one or more release statuses.</td>
</tr>
<tr>
<td valign="top"><strong>releaseGroups</strong> </td>
<td valign="top"><a href="#releasegroupconnection">ReleaseGroupConnection</a></td>
<td>
A list of release groups linked to this entity.
</td>
</tr>
<tr>
<td align="right" valign="top">after</td>
<td valign="top"><a href="#string">String</a></td>
@ -1458,11 +1441,28 @@ field.
<td valign="top"><a href="#int">Int</a></td>
<td></td>
</tr>
<tr>
<td valign="top"><strong>releaseGroups</strong> </td>
<td valign="top"><a href="#releasegroupconnection">ReleaseGroupConnection</a></td>
<td>
A list of release groups linked to this entity.
</td>
</tr>
<tr>
<td align="right" valign="top">type</td>
<td valign="top">[<a href="#releasegrouptype">ReleaseGroupType</a>]</td>
<td>Filter by one or more release group types.</td>
</tr>
<tr>
<td align="right" valign="top">after</td>
<td valign="top"><a href="#string">String</a></td>
<td></td>
</tr>
<tr>
<td align="right" valign="top">first</td>
<td valign="top"><a href="#int">Int</a></td>
<td></td>
</tr>
<tr>
<td valign="top"><strong>works</strong> </td>
<td valign="top"><a href="#workconnection">WorkConnection</a></td>
@ -2059,16 +2059,6 @@ field.
A list of releases linked to this entity.
</td>
</tr>
<tr>
<td align="right" valign="top">after</td>
<td valign="top"><a href="#string">String</a></td>
<td></td>
</tr>
<tr>
<td align="right" valign="top">first</td>
<td valign="top"><a href="#int">Int</a></td>
<td></td>
</tr>
<tr>
<td align="right" valign="top">type</td>
<td valign="top">[<a href="#releasegrouptype">ReleaseGroupType</a>]</td>
@ -2079,6 +2069,16 @@ field.
<td valign="top">[<a href="#releasestatus">ReleaseStatus</a>]</td>
<td>Filter by one or more release statuses.</td>
</tr>
<tr>
<td align="right" valign="top">after</td>
<td valign="top"><a href="#string">String</a></td>
<td></td>
</tr>
<tr>
<td align="right" valign="top">first</td>
<td valign="top"><a href="#int">Int</a></td>
<td></td>
</tr>
<tr>
<td valign="top"><strong>relationships</strong> </td>
<td valign="top"><a href="#relationships">Relationships</a></td>
@ -2758,16 +2758,6 @@ from the lengths of the tracks using it.
A list of releases linked to this entity.
</td>
</tr>
<tr>
<td align="right" valign="top">after</td>
<td valign="top"><a href="#string">String</a></td>
<td></td>
</tr>
<tr>
<td align="right" valign="top">first</td>
<td valign="top"><a href="#int">Int</a></td>
<td></td>
</tr>
<tr>
<td align="right" valign="top">type</td>
<td valign="top">[<a href="#releasegrouptype">ReleaseGroupType</a>]</td>
@ -2778,6 +2768,16 @@ from the lengths of the tracks using it.
<td valign="top">[<a href="#releasestatus">ReleaseStatus</a>]</td>
<td>Filter by one or more release statuses.</td>
</tr>
<tr>
<td align="right" valign="top">after</td>
<td valign="top"><a href="#string">String</a></td>
<td></td>
</tr>
<tr>
<td align="right" valign="top">first</td>
<td valign="top"><a href="#int">Int</a></td>
<td></td>
</tr>
<tr>
<td valign="top"><strong>relationships</strong> </td>
<td valign="top"><a href="#relationships">Relationships</a></td>
@ -3782,6 +3782,11 @@ It is not a mark of how good or bad the music itself is for that, use
A list of release groups linked to this entity.
</td>
</tr>
<tr>
<td align="right" valign="top">type</td>
<td valign="top">[<a href="#releasegrouptype">ReleaseGroupType</a>]</td>
<td>Filter by one or more release group types.</td>
</tr>
<tr>
<td align="right" valign="top">after</td>
<td valign="top"><a href="#string">String</a></td>
@ -3792,11 +3797,6 @@ It is not a mark of how good or bad the music itself is for that, use
<td valign="top"><a href="#int">Int</a></td>
<td></td>
</tr>
<tr>
<td align="right" valign="top">type</td>
<td valign="top">[<a href="#releasegrouptype">ReleaseGroupType</a>]</td>
<td>Filter by one or more release group types.</td>
</tr>
<tr>
<td valign="top"><strong>relationships</strong> </td>
<td valign="top"><a href="#relationships">Relationships</a></td>
@ -4060,16 +4060,6 @@ field.
A list of releases linked to this entity.
</td>
</tr>
<tr>
<td align="right" valign="top">after</td>
<td valign="top"><a href="#string">String</a></td>
<td></td>
</tr>
<tr>
<td align="right" valign="top">first</td>
<td valign="top"><a href="#int">Int</a></td>
<td></td>
</tr>
<tr>
<td align="right" valign="top">type</td>
<td valign="top">[<a href="#releasegrouptype">ReleaseGroupType</a>]</td>
@ -4080,6 +4070,16 @@ field.
<td valign="top">[<a href="#releasestatus">ReleaseStatus</a>]</td>
<td>Filter by one or more release statuses.</td>
</tr>
<tr>
<td align="right" valign="top">after</td>
<td valign="top"><a href="#string">String</a></td>
<td></td>
</tr>
<tr>
<td align="right" valign="top">first</td>
<td valign="top"><a href="#int">Int</a></td>
<td></td>
</tr>
<tr>
<td valign="top"><strong>relationships</strong> </td>
<td valign="top"><a href="#relationships">Relationships</a></td>

View file

@ -700,26 +700,6 @@
"name": "releases",
"description": "A list of releases linked to this entity.",
"args": [
{
"name": "after",
"description": null,
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"defaultValue": null
},
{
"name": "first",
"description": null,
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"defaultValue": null
},
{
"name": "type",
"description": "Filter by one or more release group types.",
@ -747,6 +727,26 @@
}
},
"defaultValue": null
},
{
"name": "after",
"description": null,
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"defaultValue": null
},
{
"name": "first",
"description": null,
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"defaultValue": null
}
],
"type": {
@ -1577,26 +1577,6 @@
"name": "releases",
"description": "A list of releases linked to this entity.",
"args": [
{
"name": "after",
"description": null,
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"defaultValue": null
},
{
"name": "first",
"description": null,
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"defaultValue": null
},
{
"name": "type",
"description": "Filter by one or more release group types.",
@ -1624,20 +1604,7 @@
}
},
"defaultValue": null
}
],
"type": {
"kind": "OBJECT",
"name": "ReleaseConnection",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "releaseGroups",
"description": "A list of release groups linked to this entity.",
"args": [
},
{
"name": "after",
"description": null,
@ -1657,7 +1624,20 @@
"ofType": null
},
"defaultValue": null
},
}
],
"type": {
"kind": "OBJECT",
"name": "ReleaseConnection",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "releaseGroups",
"description": "A list of release groups linked to this entity.",
"args": [
{
"name": "type",
"description": "Filter by one or more release group types.",
@ -1671,6 +1651,26 @@
}
},
"defaultValue": null
},
{
"name": "after",
"description": null,
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"defaultValue": null
},
{
"name": "first",
"description": null,
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"defaultValue": null
}
],
"type": {
@ -2145,26 +2145,6 @@
"name": "releases",
"description": "A list of releases linked to this entity.",
"args": [
{
"name": "after",
"description": null,
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"defaultValue": null
},
{
"name": "first",
"description": null,
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"defaultValue": null
},
{
"name": "type",
"description": "Filter by one or more release group types.",
@ -2192,6 +2172,26 @@
}
},
"defaultValue": null
},
{
"name": "after",
"description": null,
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"defaultValue": null
},
{
"name": "first",
"description": null,
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"defaultValue": null
}
],
"type": {
@ -2915,6 +2915,20 @@
"name": "releaseGroups",
"description": "A list of release groups linked to this entity.",
"args": [
{
"name": "type",
"description": "Filter by one or more release group types.",
"type": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "ENUM",
"name": "ReleaseGroupType",
"ofType": null
}
},
"defaultValue": null
},
{
"name": "after",
"description": null,
@ -2934,20 +2948,6 @@
"ofType": null
},
"defaultValue": null
},
{
"name": "type",
"description": "Filter by one or more release group types.",
"type": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "ENUM",
"name": "ReleaseGroupType",
"ofType": null
}
},
"defaultValue": null
}
],
"type": {
@ -3352,26 +3352,6 @@
"name": "releases",
"description": "A list of releases linked to this entity.",
"args": [
{
"name": "after",
"description": null,
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"defaultValue": null
},
{
"name": "first",
"description": null,
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"defaultValue": null
},
{
"name": "type",
"description": "Filter by one or more release group types.",
@ -3399,6 +3379,26 @@
}
},
"defaultValue": null
},
{
"name": "after",
"description": null,
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"defaultValue": null
},
{
"name": "first",
"description": null,
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"defaultValue": null
}
],
"type": {
@ -5208,26 +5208,6 @@
"name": "releases",
"description": "A list of releases linked to this entity.",
"args": [
{
"name": "after",
"description": null,
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"defaultValue": null
},
{
"name": "first",
"description": null,
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"defaultValue": null
},
{
"name": "type",
"description": "Filter by one or more release group types.",
@ -5255,6 +5235,26 @@
}
},
"defaultValue": null
},
{
"name": "after",
"description": null,
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"defaultValue": null
},
{
"name": "first",
"description": null,
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"defaultValue": null
}
],
"type": {
@ -6686,26 +6686,6 @@
"name": "releases",
"description": "A list of releases linked to this entity.",
"args": [
{
"name": "after",
"description": null,
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"defaultValue": null
},
{
"name": "first",
"description": null,
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"defaultValue": null
},
{
"name": "type",
"description": "Filter by one or more release group types.",
@ -6733,20 +6713,7 @@
}
},
"defaultValue": null
}
],
"type": {
"kind": "OBJECT",
"name": "ReleaseConnection",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "releaseGroups",
"description": "A list of release groups linked to this entity.",
"args": [
},
{
"name": "after",
"description": null,
@ -6766,7 +6733,20 @@
"ofType": null
},
"defaultValue": null
},
}
],
"type": {
"kind": "OBJECT",
"name": "ReleaseConnection",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "releaseGroups",
"description": "A list of release groups linked to this entity.",
"args": [
{
"name": "type",
"description": "Filter by one or more release group types.",
@ -6780,6 +6760,26 @@
}
},
"defaultValue": null
},
{
"name": "after",
"description": null,
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"defaultValue": null
},
{
"name": "first",
"description": null,
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"defaultValue": null
}
],
"type": {
@ -7369,6 +7369,16 @@
"name": "areas",
"description": "Browse area entities linked to the given arguments.",
"args": [
{
"name": "collection",
"description": "The MBID of a collection in which the entity is found.",
"type": {
"kind": "SCALAR",
"name": "MBID",
"ofType": null
},
"defaultValue": null
},
{
"name": "after",
"description": null,
@ -7388,16 +7398,6 @@
"ofType": null
},
"defaultValue": null
},
{
"name": "collection",
"description": "The MBID of a collection in which the entity is found.",
"type": {
"kind": "SCALAR",
"name": "MBID",
"ofType": null
},
"defaultValue": null
}
],
"type": {
@ -7412,26 +7412,6 @@
"name": "artists",
"description": "Browse artist entities linked to the given arguments.",
"args": [
{
"name": "after",
"description": null,
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"defaultValue": null
},
{
"name": "first",
"description": null,
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"defaultValue": null
},
{
"name": "area",
"description": "The MBID of an area to which the entity is linked.",
@ -7491,20 +7471,7 @@
"ofType": null
},
"defaultValue": null
}
],
"type": {
"kind": "OBJECT",
"name": "ArtistConnection",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "collections",
"description": "Browse collection entities linked to the given arguments.",
"args": [
},
{
"name": "after",
"description": null,
@ -7524,7 +7491,20 @@
"ofType": null
},
"defaultValue": null
},
}
],
"type": {
"kind": "OBJECT",
"name": "ArtistConnection",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "collections",
"description": "Browse collection entities linked to the given arguments.",
"args": [
{
"name": "area",
"description": "The MBID of an area to which the entity is linked.",
@ -7624,20 +7604,7 @@
"ofType": null
},
"defaultValue": null
}
],
"type": {
"kind": "OBJECT",
"name": "CollectionConnection",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "events",
"description": "Browse event entities linked to the given arguments.",
"args": [
},
{
"name": "after",
"description": null,
@ -7657,7 +7624,20 @@
"ofType": null
},
"defaultValue": null
},
}
],
"type": {
"kind": "OBJECT",
"name": "CollectionConnection",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "events",
"description": "Browse event entities linked to the given arguments.",
"args": [
{
"name": "area",
"description": "The MBID of an area to which the entity is linked.",
@ -7697,20 +7677,7 @@
"ofType": null
},
"defaultValue": null
}
],
"type": {
"kind": "OBJECT",
"name": "EventConnection",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "labels",
"description": "Browse label entities linked to the given arguments.",
"args": [
},
{
"name": "after",
"description": null,
@ -7730,7 +7697,20 @@
"ofType": null
},
"defaultValue": null
},
}
],
"type": {
"kind": "OBJECT",
"name": "EventConnection",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "labels",
"description": "Browse label entities linked to the given arguments.",
"args": [
{
"name": "area",
"description": "The MBID of an area to which the entity is linked.",
@ -7760,20 +7740,7 @@
"ofType": null
},
"defaultValue": null
}
],
"type": {
"kind": "OBJECT",
"name": "LabelConnection",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "places",
"description": "Browse place entities linked to the given arguments.",
"args": [
},
{
"name": "after",
"description": null,
@ -7793,7 +7760,20 @@
"ofType": null
},
"defaultValue": null
},
}
],
"type": {
"kind": "OBJECT",
"name": "LabelConnection",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "places",
"description": "Browse place entities linked to the given arguments.",
"args": [
{
"name": "area",
"description": "The MBID of an area to which the entity is linked.",
@ -7813,20 +7793,7 @@
"ofType": null
},
"defaultValue": null
}
],
"type": {
"kind": "OBJECT",
"name": "PlaceConnection",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "recordings",
"description": "Browse recording entities linked to the given arguments.",
"args": [
},
{
"name": "after",
"description": null,
@ -7846,7 +7813,20 @@
"ofType": null
},
"defaultValue": null
},
}
],
"type": {
"kind": "OBJECT",
"name": "PlaceConnection",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "recordings",
"description": "Browse recording entities linked to the given arguments.",
"args": [
{
"name": "artist",
"description": "The MBID of an artist to which the entity is linked.",
@ -7886,20 +7866,7 @@
"ofType": null
},
"defaultValue": null
}
],
"type": {
"kind": "OBJECT",
"name": "RecordingConnection",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "releases",
"description": "Browse release entities linked to the given arguments.",
"args": [
},
{
"name": "after",
"description": null,
@ -7919,7 +7886,20 @@
"ofType": null
},
"defaultValue": null
},
}
],
"type": {
"kind": "OBJECT",
"name": "RecordingConnection",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "releases",
"description": "Browse release entities linked to the given arguments.",
"args": [
{
"name": "area",
"description": "The MBID of an area to which the entity is linked.",
@ -8037,20 +8017,7 @@
"ofType": null
},
"defaultValue": null
}
],
"type": {
"kind": "OBJECT",
"name": "ReleaseConnection",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "releaseGroups",
"description": "Browse release group entities linked to the given arguments.",
"args": [
},
{
"name": "after",
"description": null,
@ -8070,7 +8037,20 @@
"ofType": null
},
"defaultValue": null
},
}
],
"type": {
"kind": "OBJECT",
"name": "ReleaseConnection",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "releaseGroups",
"description": "Browse release group entities linked to the given arguments.",
"args": [
{
"name": "artist",
"description": "The MBID of an artist to which the entity is linked.",
@ -8114,20 +8094,7 @@
}
},
"defaultValue": null
}
],
"type": {
"kind": "OBJECT",
"name": "ReleaseGroupConnection",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "works",
"description": "Browse work entities linked to the given arguments.",
"args": [
},
{
"name": "after",
"description": null,
@ -8147,7 +8114,20 @@
"ofType": null
},
"defaultValue": null
},
}
],
"type": {
"kind": "OBJECT",
"name": "ReleaseGroupConnection",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "works",
"description": "Browse work entities linked to the given arguments.",
"args": [
{
"name": "artist",
"description": "The MBID of an artist to which the entity is linked.",
@ -8177,6 +8157,26 @@
"ofType": null
},
"defaultValue": null
},
{
"name": "after",
"description": null,
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"defaultValue": null
},
{
"name": "first",
"description": null,
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"defaultValue": null
}
],
"type": {

View file

@ -66,8 +66,8 @@ function createBrowseField (connectionType, args) {
type: connectionType,
description: `Browse ${typeName} entities linked to the given arguments.`,
args: {
...forwardConnectionArgs,
...args
...args,
...forwardConnectionArgs
},
resolve: resolveBrowse
}

View file

@ -132,8 +132,8 @@ function linkedQuery (connectionType, { args, ...config } = {}) {
type: connectionType,
description: `A list of ${typeName} linked to this entity.`,
args: {
...forwardConnectionArgs,
...args
...args,
...forwardConnectionArgs
},
resolve: resolveLinked,
...config