How would I handle the datatype integer [ ] data coming from postgres in reamlmodel.js in Realm Object Server


In realmmodel.js
code is
productQuantityList’: {type: ‘list’, optional: true},

and In postgres table
code is
“productQuantityList” integer[],

How would i handle these data from both end perspectives


Unfortunately, we don’t support array of primitive types (integer[]) in the Postgres adapter yet. I suggest that you model if using a separate Realm model and a separate Postgres table just like any other many-to-many relation.