-
-
Notifications
You must be signed in to change notification settings - Fork 678
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
Typeorm breaking changes in 0.3.0+ affecting TypeGraphql examples #1252
Comments
Has anyone managed to upgrade Typeorm to 0.3.0 with TypeGraphql? |
Yes, @laukaichung . I'm currently working on a small project and I'm using TypeORM 0.3.6 with TypeGraphQL 1.1.1 Do you have a concrete issue? You can check my project out, if you'd like. All basic examples work. You can also look at specific commits, as I work incrementally. It's not much, but it's honest work 🙃 I have only tried MySQL DB, but should work just as well with PostgreSql. Haven't worked with NoSql DBs though, so cannot comment on that. |
Thank you for the example. Working fine so far. I guess Also, all of my resolvers need to be decorated with My resolver looks like this:
If you are using type-graphql-dataloader you need to change its config because the
|
Why do you need this? Last update was 2 years ago...
Yup You can also use the |
I guess the examples should be updates targeting mostly the latest version. This way it would avoid such errors related to previous/unmaintained dependency versions. |
Describe the issue
Typeorm 0.3.0+ has released with many breaking changes for the Typegraphql examples. Notably, all container-related features in Typeorm have been depecreated affecting how TypeDI is used. Also the way to establish a typeorm connection to a DB with Typeorm.createConnection() has been depecrated in favour of Typeorm.DataSource.
At a first glance, the following examples have been affected:
typeorm-basic-usage
typeorm-lazy-relations
Are you able to make a PR that fix this?
Not currently
The text was updated successfully, but these errors were encountered: