# 商店中水合查找结果时可能存在 Bug

**URL:** <https://meta.discourse.org/t/potential-bug-in-store-when-hydrating-find-results/92394>\
**Category:** Development\
**Created:** [2018 年7 月 15 日 14:57 UTC](https://meta.discourse.org/t/potential-bug-in-store-when-hydrating-find-results/92394 "2018-07-15T14:57:20Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

作者： ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)\
发布日期： [2018 年7 月 16 日 16:27 UTC](https://meta.discourse.org/t/potential-bug-in-store-when-hydrating-find-results/92394/3 "2018-07-16T16:27:43Z")

</div>

We require when returning data from the server that the object is not the root of the JSON object. For example instead of:

`{ "id": 123, "name": "robin"}` it should be `{"person": {"id": 123, name: "robin"} }`

This is used for cross-referencing records. For example a JSON payload might include multiple relationships and the store will wire them up together.

If you have no control over your server API, you can create a new adapter to transform the returned JSON into the format our code requires.

---

_[View the full topic](https://meta.discourse.org/t/potential-bug-in-store-when-hydrating-find-results/92394)._
