Skip to content

Commit

Permalink
Remove outdated example from group_by docs
Browse files Browse the repository at this point in the history
It looks like this syntax was supported a long time ago (the example was added
in 0.1.0), but it is definitely not supported currently.
  • Loading branch information
michalmuskala committed Feb 2, 2017
1 parent 4785207 commit f278794
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/ecto/query.ex
Original file line number Diff line number Diff line change
Expand Up @@ -1005,9 +1005,6 @@ defmodule Ecto.Query do
group_by: p.category,
select: {p.category, count(p.id)})
# Group on all fields on the Post schema
from(p in Post, group_by: p, select: p)
# Using atoms
from(p in Post, group_by: :category, select: {p.category, count(p.id)})
Expand Down

0 comments on commit f278794

Please sign in to comment.