graphbrainz/src/types/instrument.js
Brian Beck 8759943638 wip
2016-08-30 23:33:29 -07:00

27 lines
564 B
JavaScript

import { GraphQLObjectType, GraphQLString } from 'graphql/type'
import Node from './node'
import Entity from './entity'
import {
fieldWithID,
id,
mbid,
name,
disambiguation
} from './helpers'
const Instrument = new GraphQLObjectType({
name: 'Instrument',
description:
'Instruments are devices created or adapted to make musical sounds.',
interfaces: () => [Node, Entity],
fields: () => ({
id,
mbid,
name,
disambiguation,
description: { type: GraphQLString },
...fieldWithID('type')
})
})
export default Instrument