mongodb_ecto icon indicating copy to clipboard operation
mongodb_ecto copied to clipboard

Not able to pass limit

Open briankariuki opened this issue 1 year ago • 0 comments

Here's my query, selecting that first 10 elements from user's collection.

users = Repo.all(from(u in UserModel, limit: 4, select: u))

When I run this I get this errror

** (exit) an exception was raised:
    ** (FunctionClauseError) no function clause matching in Mongo.Ecto.NormalizedQuery.offset_limit/5

briankariuki avatar Jun 16 '23 18:06 briankariuki