graphbrainz/src/types/instrument.js
2016-08-19 22:59:32 -07:00

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