graphbrainz/src/types/life-span.js

14 lines
365 B
JavaScript
Raw Normal View History

2016-08-08 07:54:06 +00:00
import { GraphQLObjectType, GraphQLBoolean } from 'graphql/type'
import DateType from './date'
export default new GraphQLObjectType({
name: 'LifeSpan',
description:
'Begin and end date of an entity that may have a finite lifetime.',
fields: () => ({
begin: { type: DateType },
end: { type: DateType },
ended: { type: GraphQLBoolean }
})
})