loopbackio / loopback-connector-elastic-search

Strongloop Loopback connector for Elasticsearch
MIT License
78 stars 56 forks source link

Id is not present when it is used with include filter #97

Open Mohammed-Aadil opened 7 years ago

Mohammed-Aadil commented 7 years ago

There is only _source part of json if related model get fetched with include filter.

pulkitsinghal commented 7 years ago

Nice catch! Can you submit a PR with a failing test for this? Probably don't even have to write a new one, just an assertion in a existing one might suffice.

That way we can put that together with the patch when we release to prove that it is fixed!