diff --git a/docs/site/express-with-lb4-rest-tutorial.md b/docs/site/express-with-lb4-rest-tutorial.md index 62a31901adcc..3fbe26dfb247 100644 --- a/docs/site/express-with-lb4-rest-tutorial.md +++ b/docs/site/express-with-lb4-rest-tutorial.md @@ -116,7 +116,8 @@ Then copy and paste the following into the `ds.json` file: ### Add Note Repository To create the repository, run the `lb4 repository` command and choose the -`DsDataSource` as the datasource and `Note` model as the model. +`DsDataSource`, as the datasource, `Note` model as the model, and +`DefaultCrudRepository` as the repository base class. ### Add Note Controller @@ -252,7 +253,7 @@ Now that our **src/server.ts** file is ready, then we can modify our import {ExpressServer} from './server'; import {ApplicationConfig} from '@loopback/core'; -export {ExpressServer}; +export {ExpressServer, NoteApplication}; export async function main(options: ApplicationConfig = {}) { const server = new ExpressServer(options); diff --git a/docs/site/todo-list-tutorial-repository.md b/docs/site/todo-list-tutorial-repository.md index af93cd023ada..8bc7e680bdd5 100644 --- a/docs/site/todo-list-tutorial-repository.md +++ b/docs/site/todo-list-tutorial-repository.md @@ -31,6 +31,8 @@ lb4 repository ? Select the model(s) you want to generate a repository TodoList create src/repositories/todo-list.repository.ts update src/repositories/index.ts +? Please select the repository base class DefaultCrudRepository (Legacy juggler +bridge) Repository TodoList was created in src/repositories/ ``` diff --git a/docs/site/todo-tutorial-repository.md b/docs/site/todo-tutorial-repository.md index a07f117890bd..bef59a9aa017 100644 --- a/docs/site/todo-tutorial-repository.md +++ b/docs/site/todo-tutorial-repository.md @@ -35,6 +35,8 @@ lb4 repository ? Select the model(s) you want to generate a repository Todo create src/repositories/todo.repository.ts update src/repositories/index.ts +? Please select the repository base class DefaultCrudRepository (Legacy juggler +bridge) Repository Todo was created in src/repositories/ ```