What are you learning right now? My last side project was recently derailed and I am curious to hear what other people are spending their time studying/learning about.
I am learning how to build a modern computer from parts. I last built one in 2001.
I have been working on a course to teach kids how to learn programming with Scratch. I want to learn more of the Adobe CC suit to add more effects to my videos. I want to learn how I can improve my remote skills to better work with my team.
I'm learning how to build a backend for a web app using TypeORM, GraphQL and Apollo Server. I'm a frontend developer.
Also, I've been toying with OBS Studio to learn how to make more professional video recordings to showcase applications at work, or bug reproductions, documentation, etc.
Hey, I recommend checking out type-graphql and especially Nexus to work with GraphQL on server-side.
If you want to go serious about GraphQL I also recommend reading Production-ready GraphQL. I've been working with gql for 4 years now but this book really deepened how I think about modelling my schemas, queries and mutations.
Thank you! In fact I have been using type-graphql for this project.
I'll make a note to check out Nexus. Some other contenders to go into my tech stack were Hasura, Prisma and Postgraphile, but I wanted something a little bit closer to the vanilla GraphQL experience...
Agree with you. The more vanilla GraphQL you go in the beginning, the more you'll be able to choose abstraction you want on top of that.
If I had to give you just one tip to design your schema: favor simple queries and mutations that do just one thing instead of trying to generalize your use-cases. For example if you want your client to be able to retrieve your Products by id and by name, instead of going for `product(id: String, name: String)` go for `productById(id: String!)` and `productByName(name: String!)`
You'll end up with more fields on Query but the Product type stays the same, the arguments are clearer (just one that is required) and you'll get simpler resolvers.
To generalize: forget about REST best practices, think about you queries and mutations as functions and write them with the according best practices you would apply to functions. Funny thing I noticed about gql is front-end developers are generally more comfortable than back-end ones geting the grasp of it as its DNA is really client-focused. Sorry for the long reply :)
I've been porting parts of a Swift / iOS app to a shared Kotlin Native / Multiplatform library and learning more about Android development, I hope to release an Android version of the my app. I'm also eyeing Flutter and hoping to try it out in the near future.
Comments (876) 381 threads
Earlier commentsI have been working on a course to teach kids how to learn programming with Scratch. I want to learn more of the Adobe CC suit to add more effects to my videos.
I want to learn how I can improve my remote skills to better work with my team.
Also, I've been toying with OBS Studio to learn how to make more professional video recordings to showcase applications at work, or bug reproductions, documentation, etc.
All the best on your learning journey!
I'll make a note to check out Nexus. Some other contenders to go into my tech stack were Hasura, Prisma and Postgraphile, but I wanted something a little bit closer to the vanilla GraphQL experience...
If I had to give you just one tip to design your schema: favor simple queries and mutations that do just one thing instead of trying to generalize your use-cases. For example if you want your client to be able to retrieve your Products by id and by name, instead of going for `product(id: String, name: String)` go for `productById(id: String!)` and `productByName(name: String!)` You'll end up with more fields on Query but the Product type stays the same, the arguments are clearer (just one that is required) and you'll get simpler resolvers. To generalize: forget about REST best practices, think about you queries and mutations as functions and write them with the according best practices you would apply to functions.
Funny thing I noticed about gql is front-end developers are generally more comfortable than back-end ones geting the grasp of it as its DNA is really client-focused.
Sorry for the long reply :)
Continue this thread — 1 reply
All comments shown.
Couldn't load more comments. Check your connection and try again.