Check if value is in mongodb collection
var result = collection.Find(new BsonDocument("name", "henry")).FirstOrDefault();
if (result != null)
{
Console.WriteLine($"This user has been found with the name {collection["name"]}")
}
else
{
Console.WriteLine("This user has not been found.")
}