DEV Community

Discussion on: Building an API with AdonisJS (part 3)

Collapse
 
arapl3y profile image
Alex Rapley

In 4.0 it seems as though some of the Lucid Model methods have changed. I was getting an unresponsive server until I changed to the newer Lucid Model method syntax such as:
const newEvent = await user.events().create({ user_id: user.id, title, location, date, time })