jiggliemon
03/26/2018, 7:50 PMconst List = new GraphQLObjectType({
name: 'List',
fields: {
id: {
type: GraphQLID
},
name: {
type: GraphQLString
},
archived: {
type: GraphQLBoolean,
column: 'is_archived' // <--- This thing
},
items: {
type: new GraphQLList(Item),
resolve: listAllListItems
}
}
});
nilan
03/27/2018, 4:59 PM