Nested properties
Opened this issue · 0 comments
kaderiho commented
I faced problem that I can't set id in set.props.id if id is nested property. The next case describes this issue:
const Attachment = DefineMap.extend({
attachmentTO: {
attachmentType: 'string',
resourceType: 'string',
contentType: 'string',
entityType: 'string',
entityId: 'string',
fileSize: 'number',
urlName: 'string',
clientId: 'number',
status: 'string',
id: 'string'
},
downloadUrl: null,
uploadUrl: null
});
const attachmentsAlgebra = new set.Algebra(
set.props.id('attachmentTO.id')
);
As a result of this that set.props.id doesn't see the property attachmentTO.id