import { DefaultCrudRepository , juggler } from '@loopback/repository' ; import { Order } from '../models' ; import { inject } from '@loopback/core' ; export class OrderRepository extends DefaultCrudRepository < Order , typeof Order . prototype . orderId > { constructor ( @ inject ( 'datasources.mongo' ) dataSource ) { super ( Order , dataSource ) ; } }