Created
          April 22, 2015 13:40 
        
      - 
      
- 
        Save cloud8421/3c3005148652310f926c to your computer and use it in GitHub Desktop. 
    Count query in Ecto
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | # Given a Message model with a body column | |
| from(m in Message, select: count(m.body)) |> Repo.one | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment