title: loopbackjs remote connector not returning ids
body: <p>I have a nodejs application which is is trying to comunicate with a loopback server</p>
  
  <p>I have the following datasources</p>
  
  <pre><code>{
      "db": {
          "name": "db",
          "connector": "memory"
      },
      "remoteDS": {
          "url": "http://localhost:3033/api",
          "name": "remoteDS",
          "connector": "remote"
      }
  }
  </code></pre>
  
  <p>using <code>loopback-connector-remote</code></p>
  
  <p>I have <code>common/models/pack.json</code></p>
  
  <pre><code>{
      "name": "pack",
      "plural": "packs",
      "base": "PersistedModel",
      "idInjection": true,
      "properties": {},
      "validations": [],
      "relations": {},
      "acls": [],
      "methods": {}
  }
  </code></pre>
  
  <p>and my <code>test.js</code></p>
  
  <pre><code>var app = require('./client/client');
  app.models.Pack.create({foo: 'bar'})
      .then(result =&gt; {
          console.log(result); // { foo: 'bar', id: NaN }
          return app.models.Pack.find()
      })
      .then(result =&gt; {
          console.log(result); // [{ foo: 'bar', id: NaN }]
      })
      .catch(err =&gt; {
          console.error(err.message);
      })
  </code></pre>
  
  <p>I do not know why <code>id: NaN</code></p>
  
  <p>When I am trying via the api explorer I have the id</p>
  
  <pre><code>[
    {
      "foo": "bar",
      "id": "5bdaf67aed811700149e4549"
    }
  ]
  </code></pre>