Can you be more specific with what you're trying to do? If you're looking to specific the 'visibility' property on the source or target property, you should be able to do that with the sourceProperty or targetProperty args. So something like:
foam.RELATIONSHIP({
sourceModel: 'foam.nanos.demo.relationship.Student',
targetModel: 'foam.nanos.demo.relationship.Course',
cardinality: '*:*',
forwardName: 'courses',
inverseName: 'students',
targetProperty: {
visibility: 'RO',
},
});
This should make the 'students' property on foam.nanos.demo.relationship.Course be marked as read-only.