title: Loopback - GET model using custom String ID from MongoDB
body: <p>I'm developing an API with loopback, everything worked fine until I decided to change the ids of my documents in the database. Now I don't want them to be auto generated.</p>
  
  <p>Now that I'm setting the Id myself. I get an "Unknown id" 404, whenever I hit this endpoint: <code>GET properties/{id}</code></p>
  
  <p>How can I use custom IDs with loopback and mongodb?</p>
  
  <p>Whenever I hit this endpoint: <code>http://localhost:5000/api/properties/20020705171616489678000000</code>
  I get this error:</p>
  
  <pre><code>{
    "error": {
      "name": "Error",
      "status": 404,
      "message": "Unknown \"Property\" id \"20020705171616489678000000\".",
      "statusCode": 404,
      "code": "MODEL_NOT_FOUND"
    }
  }
  </code></pre>
  
  <p>This is my model.json, just in case...</p>
  
  <pre><code>{
    "name": "Property",
    "plural": "properties",
    "base": "PersistedModel",
    "idInjection": false,
    "options": {
      "validateUpsert": true
    },
    "properties": {
      "id": {"id": true, "type": "string", "generated": false},
      "photos": {
        "type": [
          "string"
        ]
      },
      "propertyType": {
        "type": "string",
        "required": true
      },
      "internalId": {
        "type": "string",
        "required": true
      },
      "flexCode": {
        "type": "string",
        "required": true
      }
  
    },
    "validations": [],
    "relations": {},
    "acls": [],
    "methods": []
  }
  </code></pre>