title: SailsJS, Waterline populate records with select
body: <p>I have looked at a lot of old SO questions which have broken GitHub links and SailsJS Trello, however I am still unclear.</p>
  
  <p>Is it possible, to populate a field (one-to-one relationship) in SailsJS and return only specific fields (either via select or omit).</p>
  
  <pre><code>await Document.find({id: id}).populate('createdBy', {select: ['name']})
  </code></pre>
  
  <p>I am getting </p>
  
  <pre><code>UsageError: Invalid populate(s).
  Details:
    Could not populate `createdBy` because of ambiguous usage.  This is a singular ("model") association, which means it never refers to more than _one_ associated record.  So passing in subcriteria (i.e. as the second argument to `.populate()`) is not supported for this association
  , since it generally wouldn't make any sense.  But that's the trouble-- it looks like some sort of a subcriteria (or something) _was_ provided!
  (Note that subcriterias consisting ONLY of `omit` or `select` are a special case that _does_ make sense.  This usage will be supported in a future version of Waterline.)
  
  Here's what was passed in:
  { select: [ 'name' ] }
  
  </code></pre>
  
  <p>In models, </p>
  
  <pre><code>createdBy: {
        model: 'user',
        description: 'Who is this document assigned to'
      },
  </code></pre>
  
  <p>I am using sails <code>1.1.0</code>, waterline <code>0.13.5-0</code></p>
  
  <p>Am I doing this right? Is there a way to do this?</p>