mirror of
https://github.com/BradNut/graphbrainz
synced 2025-09-08 17:40:32 +00:00
14 lines
365 B
JavaScript
14 lines
365 B
JavaScript
|
|
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 }
|
||
|
|
})
|
||
|
|
})
|