# Can-connect: how to access SuperMap's Model store

**URL:** <https://forums.bitovi.com/t/can-connect-how-to-access-supermaps-model-store/146>\
**Category:** CanJS\
**Created:** [February 8, 2016, 12:12am UTC](https://forums.bitovi.com/t/can-connect-how-to-access-supermaps-model-store/146 "2016-02-08T00:12:49Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![marshallswain](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.bitovi.com/marshallswain/32/22_2.png) [@marshallswain](https://forums.bitovi.com/u/marshallswain)\
**Post date:** [February 8, 2016, 12:12am UTC](https://forums.bitovi.com/t/can-connect-how-to-access-supermaps-model-store/146/1 "2016-02-08T00:12:49Z")

</div>

I’ve created a Transaction supermodel using the DoneJS generator. If I’ve already retrieved a list of Transaction instances. **How can I look up a Transaction instance from the store by id?**

I see in [the code for can/model](https://github.com/canjs/can-connect/blob/master/src/can/model/model.js#L219) that there is a store attribute that’s based off the `constructor-store` behavior. Is this not available for SuperMap?

Also, is can-connect hosted anywhere that I could use it in a jsbin?

---

<div class="post-metadata">

**Author:** ![justinbmeyer](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.bitovi.com/justinbmeyer/32/179_2.png) [@justinbmeyer](https://forums.bitovi.com/u/justinbmeyer)\
**Post date:** [February 8, 2016, 12:29am UTC](https://forums.bitovi.com/t/can-connect-how-to-access-supermaps-model-store/146/2 "2016-02-08T00:29:07Z")

</div>

Docs page has a jsbin [http://connect.canjs.com/doc/index.html](http://connect.canjs.com/doc/index.html)

Instances are on [http://connect.canjs.com/doc/can.connect|constructor-store.instanceStore.html](http://connect.canjs.com/doc/can.connect%7Cconstructor-store.instanceStore.html)

---

<div class="post-metadata">

**Author:** ![marshallswain](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.bitovi.com/marshallswain/32/22_2.png) [@marshallswain](https://forums.bitovi.com/u/marshallswain)\
**Post date:** [February 8, 2016, 12:33am UTC](https://forums.bitovi.com/t/can-connect-how-to-access-supermaps-model-store/146/3 "2016-02-08T00:33:32Z")

</div>

Thanks. I found my problem. I was trying to pass the id directly instead of providing an object with the id:

```auto
Transaction.get(id)

```

instead of

```auto
Transaction.get({_id:id})

```

---

<div class="post-metadata">

**Author:** ![matthewp](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.bitovi.com/matthewp/32/77_2.png) [@matthewp](https://forums.bitovi.com/u/matthewp)\
**Post date:** [February 8, 2016, 3:20pm UTC](https://forums.bitovi.com/t/can-connect-how-to-access-supermaps-model-store/146/4 "2016-02-08T15:20:35Z")

</div>

I wonder if we should support both, I would think `get` is oftened used to retrieve an item by id.

---

<div class="post-metadata">

**Author:** ![justinbmeyer](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.bitovi.com/justinbmeyer/32/179_2.png) [@justinbmeyer](https://forums.bitovi.com/u/justinbmeyer)\
**Post date:** [February 8, 2016, 7:46pm UTC](https://forums.bitovi.com/t/can-connect-how-to-access-supermaps-model-store/146/5 "2016-02-08T19:46:46Z")

</div>

@matthewp I think that’s doable if `idProp` is set.

---

<div class="post-metadata">

**Author:** ![marshallswain](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.bitovi.com/marshallswain/32/22_2.png) [@marshallswain](https://forums.bitovi.com/u/marshallswain)\
**Post date:** [February 8, 2016, 7:59pm UTC](https://forums.bitovi.com/t/can-connect-how-to-access-supermaps-model-store/146/6 "2016-02-08T19:59:42Z")

</div>

I have idProp set and it wasn’t working. I’ll look into to to see if it’s a bug.

---

<div class="post-metadata">

**Author:** ![justinbmeyer](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.bitovi.com/justinbmeyer/32/179_2.png) [@justinbmeyer](https://forums.bitovi.com/u/justinbmeyer)\
**Post date:** [February 8, 2016, 8:21pm UTC](https://forums.bitovi.com/t/can-connect-how-to-access-supermaps-model-store/146/7 "2016-02-08T20:21:45Z")

</div>

it’s not designed to work that way. I was only trying to say that it could work that way if `idProp` was set

---

<div class="post-metadata">

**Author:** ![marshallswain](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.bitovi.com/marshallswain/32/22_2.png) [@marshallswain](https://forums.bitovi.com/u/marshallswain)\
**Post date:** [February 8, 2016, 8:35pm UTC](https://forums.bitovi.com/t/can-connect-how-to-access-supermaps-model-store/146/8 "2016-02-08T20:35:01Z")

</div>

I see. Thanks for the clarification.
