const FilmType = new GraphQLObjectType({
name: 'Movie',
fields: ()=>({
id: {type: GraphQLID},
name: {type: GraphQLString},
genre: {type: GraphQLString},
year: {type: GraphQLString},
director: {
type: DirectorType,
resolve(parent,args){
return Directors.findById(parent.directorId)
}
}
}),
});