mirror of
https://github.com/BradNut/graphbrainz
synced 2025-09-08 17:40:32 +00:00
22 lines
666 B
JavaScript
22 lines
666 B
JavaScript
import { GraphQLObjectType, GraphQLBoolean } from 'graphql/type'
|
||
import { DateType } from './scalars'
|
||
|
||
export default new GraphQLObjectType({
|
||
name: 'LifeSpan',
|
||
description: `Fields indicating the begin and end date of an entity’s
|
||
lifetime, including whether it has ended (even if the date is unknown).`,
|
||
fields: () => ({
|
||
begin: {
|
||
type: DateType,
|
||
description: 'The start date of the entity’s life span.'
|
||
},
|
||
end: {
|
||
type: DateType,
|
||
description: 'The end date of the entity’s life span.'
|
||
},
|
||
ended: {
|
||
type: GraphQLBoolean,
|
||
description: 'Whether or not the entity’s life span has ended.'
|
||
}
|
||
})
|
||
})
|