-
-
Notifications
You must be signed in to change notification settings - Fork 797
Closed
Description
Steps to reproduce
-
appproperty is missing from theHookContextof any applicationsetuphook.
Example :
import { MongoClient } from 'mongodb'
app.hooks({
setup: [
async (context: HookContext, next: NextFunction) => {
const mongodb = new MongoClient(yourConnectionURI)
await mongodb.connect()
context.app.set('mongodb', mongodb)
await next()
}
]
})Taken directly from featherjs's Dove docs.
context.app is undefined here.
Expected behavior
There should be an app property on setup's HookContext.
Actual behavior
There is no app property on setup's HookContext.
System configuration
Module versions (especially the part that's not working): every @feathersjs libs version 5.0.0-pre.28
NodeJS version: 17.3.0
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels