mongoose#LeanDocument TypeScript Examples

The following examples show how to use mongoose#LeanDocument. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: statics.ts    From server with GNU General Public License v3.0 6 votes vote down vote up
/**
 * Get all the Frontend URL's From the Collection
 *
 * @param {IFrontendModel} this - Frontend Model
 * @returns {IFrontendDoc[]} list of frontend Data
 */
export async function getFrontendUrls(
  this: IFrontendModel,
): Promise<LeanDocument<IFrontendDoc>[]> {
  return this.find({}, '_id domain name').lean().exec();
}