Server-Side Swift with Vapor, Episode 12: Challenge: Users & Categories | Kodeco, the new raywenderlich.com

It’s time for another challenge! In this episode, put what you’ve learned into practice and create your own models and controlllers.


This is a companion discussion topic for the original entry at https://www.kodeco.com/21451628-server-side-swift-with-vapor/lessons/12

Just a time-saving tip for those working thru this challenge in the future… even though the challenge suggests you create the Category model with an ID of type int - DON’T fall for it!

It appears to be a typo - during the solution part of the video, Tim uses UUID.

While Fluent does provide a means for one to use Int as the underlying type for the Model ID - it is an advanced exercise and beyond the scope of the tutorial at this point!

Screenshot 2023-09-29 at 7.33.14 PM