mirror of
https://github.com/BradNut/graphbrainz
synced 2025-09-08 17:40:32 +00:00
15 lines
454 B
JavaScript
15 lines
454 B
JavaScript
|
|
import { GraphQLObjectType, GraphQLString } from 'graphql/type'
|
||
|
|
import ArtistType from './artist'
|
||
|
|
|
||
|
|
export default new GraphQLObjectType({
|
||
|
|
name: 'ArtistCredit',
|
||
|
|
description:
|
||
|
|
'Artist, variation of artist name and piece of text to join the artist ' +
|
||
|
|
'name to the next.',
|
||
|
|
fields: () => ({
|
||
|
|
artist: { type: ArtistType },
|
||
|
|
name: { type: GraphQLString },
|
||
|
|
joinPhrase: { type: GraphQLString, resolve: data => data['joinphrase'] }
|
||
|
|
})
|
||
|
|
})
|