graphbrainz/src/types/life-span.js

14 lines
372 B
JavaScript
Raw Normal View History

2016-08-08 07:54:06 +00:00
import { GraphQLObjectType, GraphQLBoolean } from 'graphql/type'
2016-08-20 05:59:32 +00:00
import { DateType } from './scalars'
2016-08-08 07:54:06 +00:00
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 }
})
})