-
-
Save Mattchewone/0931d8903a4bcdde675851a2e5a6e173 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Hook one | |
module.exports = function () { | |
return async function doFirstThing (context) { | |
const { app } = context | |
const response = await app.service('service1').find({ query: { name: { $exists: true } }, paginate: false }) | |
context.params.namesThatExist = response.data | |
return context | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment