mirror of
https://github.com/BradNut/graphbrainz
synced 2025-09-08 17:40:32 +00:00
24 lines
514 B
JavaScript
24 lines
514 B
JavaScript
import { GraphQLObjectType, GraphQLString } from 'graphql/type'
|
|
import Entity from './entity'
|
|
import {
|
|
fieldWithID,
|
|
id,
|
|
name,
|
|
disambiguation
|
|
} from './helpers'
|
|
|
|
const Instrument = new GraphQLObjectType({
|
|
name: 'Instrument',
|
|
description:
|
|
'Instruments are devices created or adapted to make musical sounds.',
|
|
interfaces: () => [Entity],
|
|
fields: () => ({
|
|
id,
|
|
name,
|
|
disambiguation,
|
|
description: { type: GraphQLString },
|
|
...fieldWithID('type')
|
|
})
|
|
})
|
|
|
|
export default Instrument
|