Function findSessionByIdService
- findSessionByIdService(sessionId: string): QueryWithHelpers<null | Document<any, BeAnObject, Session> & Session & IObjectWithTypegooseFunction & {
_id: ObjectId;
}, Document<any, BeAnObject, Session> & Session & IObjectWithTypegooseFunction & {
_id: ObjectId;
}, BeAnObject, DocumentType<Session, BeAnObject>>
-
Returns QueryWithHelpers<null | Document<any, BeAnObject, Session> & Session & IObjectWithTypegooseFunction & {
_id: ObjectId;
}, Document<any, BeAnObject, Session> & Session & IObjectWithTypegooseFunction & {
_id: ObjectId;
}, BeAnObject, DocumentType<Session, BeAnObject>>
Finds session form the database with matching id
Author
aayushchugh