I need to await a function in my $formatDatabaseJson. Im checking the docs (https://vincit.github.io/objection.js/#_s_formatdatabasejson) and seems not possible. Is there any way to do it manually?
class Person extends Model {
async $formatDatabaseJson(json) {
// Call the super class's implementation.
json = await super.$formatDatabaseJson(json)
// await function here
return json
}
}