apollo-datasource-mongodb
apollo-datasource-mongodb copied to clipboard
findByFields returns a Union of (T | undefined | null)[]
Why does the findByFields() and other functions provided by "this" return a union of the (TData, undefined, and null)[]
?
Why not just TData[]?
If this raise a type error with your resolvers typed with graphql-code-generator, I can recommend you this comment.