-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What to do after step 3 to generate api ? #585
Comments
not a repository maintainer, but EntityMetadataNotFoundError seems like a connection initialization issue, did you make sure all your entities extend BaseEntity from typeorm ? |
The above mentioned issue get resolved. But API is not generating.
I have followed below steps :-
1. I have generated one crud by typeorm crud generator.
2. Then I modified it according to document of nestjs-library-crud API documentation.
3. Run the npm run command
4. I am getting log like below :-
LOG [RouterExplorer] Mapped {/address/:id, GET} route +1ms
LOG [RouterExplorer] Mapped {/address, GET} route +1ms
LOG [RouterExplorer] Mapped {/address, POST} route +0ms
LOG [RouterExplorer] Mapped {/address/:id, PATCH} route +1ms
LOG [RouterExplorer] Mapped {/address/:id, PATCH} route +1ms
LOG [RouterExplorer] Mapped {/address/:id, DELETE} route +1ms
LOG [RouterExplorer] Mapped {/address/:id, PUT} route +1ms
LOG [RouterExplorer] Mapped {/address/:id/recover, POST} route +0ms
LOG [RouterExplorer] Mapped {/address/search, POST} route +0ms
LOG [NestApplication] Nest application successfully started +3ms
But when i am checking service and controller no code is generated
|
if your repo is minimal so far and doesnt contain any sensitive info, can you share it on github on a public repo? |
|
your user entity doesnt extend BaseEntity and also in app.module can you set synchronize: false, to synchronize: process.env.NODE_ENV === 'development', |
is it mandatory to do for all module ? will it not generate if i used on specific module ? If possible could you provide one working demo so that i can refer how to use. |
This library does not generate code, but it makes the controller handle requests for each route properly. |
I have modified all classes according to steps 1 to 3 but i am not able to proceed to 4th step. So for generation of API what to do ? when I am doing npm run dev its throwing issue EntityMetadataNotFoundError:
The text was updated successfully, but these errors were encountered: