Fetch column value for relationtable

problem:- i have only find persons column value(id,name) store one variable please help me

–bussiness model–
class Bussiness extends Model {
persons() {
return this.hasMany(‘App/Models/Person’,‘id’,‘bussiness_id’)
—person model—
class Person extends Model {
bussiness () {
return this.belongsTo(‘App/Models/Bussiness’)

const usercheck = await Bussiness.query().with(‘persons’).fetch();
const jsonform = usercheck.toJSON()
var newArray = []
return newArray

Can you elaborate lil bit?
You want to select only IDs and names? Or you want them to be concated or key-value pairs? Or it doesn’t find person IDs for you?