warn against passing custom types as document parameter in collection operations