diff --git a/source/MongoDB/Linq/MongoQueryProvider.cs b/source/MongoDB/Linq/MongoQueryProvider.cs index e20cdf33..8ff8ae34 100644 --- a/source/MongoDB/Linq/MongoQueryProvider.cs +++ b/source/MongoDB/Linq/MongoQueryProvider.cs @@ -245,7 +245,8 @@ private object ExecuteFind(MongoQueryObject queryObject) spec = queryObject.Query; cursorType.GetMethod("Spec", new[] { typeof(Document) }).Invoke(cursor, new object[] { spec }); - cursorType.GetMethod("Fields", new[] { typeof(Document) }).Invoke(cursor, new object[] { queryObject.Fields }); + if(queryObject.Fields.Count > 0) + cursorType.GetMethod("Fields", new[] { typeof(Document) }).Invoke(cursor, new object[] { queryObject.Fields }); cursorType.GetMethod("Limit").Invoke(cursor, new object[] { queryObject.NumberToLimit }); cursorType.GetMethod("Skip").Invoke(cursor, new object[] { queryObject.NumberToSkip });