# Do the Store databases not support the afterInsert hook?

**URL:** <https://forum.wixstudio.com/t/do-the-store-databases-not-support-the-afterinsert-hook/16982>\
**Category:** Ask the community\
**Tags:** wix-stores, code, design, question\
**Created:** [August 1, 2019, 10:00pm UTC](https://forum.wixstudio.com/t/do-the-store-databases-not-support-the-afterinsert-hook/16982 "2019-08-01T22:00:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ryan84495](https://avatars.discourse-cdn.com/v4/letter/r/76d3ee/32.png) [@ryan84495](https://forum.wixstudio.com/u/ryan84495)\
**Post date:** [August 1, 2019, 10:00pm UTC](https://forum.wixstudio.com/t/do-the-store-databases-not-support-the-afterinsert-hook/16982/1 "2019-08-01T22:00:37Z")

</div>

For example, in Backend/data.js:

```javascript
export function Stores$Orders_afterInsert(item, context)

```

What I put in this function appears to not be run at all, and I noticed when I try to add a Hook through the UI the only options are before/afters of Get, Query, Count, and On Failure.

If this is by design, is there a reason why and any way around it? All I want to do is have some specific code run when a purchase is made.
