Adonisjs FindOrCreate

import User from 'App/Models/User'

const searchPayload = { email: '[email protected]' }
const savePayload = { password: 'secret' }

await User.firstOrCreate(searchPayload, savePayload)
GutoTrosla