You are missing " return " before the wixData.query.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Hook Help | 7 | 846 | December 12, 2017 | |
| AfterUpdate Hook? | 0 | 316 | January 27, 2020 | |
| hook to insert into a (different) collection, then query that collection within the same hook - query does not return new items... | 3 | 656 | August 1, 2019 | |
| about hooks | 1 | 128 | March 25, 2018 | |
| afterUpdate collection updates only temporary | 2 | 372 | December 19, 2017 |