corbelDriver.resources
.relation('resourceName', sourceId, 'relationName')
.add(null, data);
That would create a relation called 'resourceName_relationName'.
Instead of this, the relation created should be relationName. And if you want to use a different resource for the relation:
corbelDriver.resources
.relation('resourceName', sourceId, 'relationName')
.add(RESOURCE_ID, data);
Right now it is looking for another resource called relationName for finding that RESOURCE_ID.
Instead of this add another param, resourcesDest or something like that
corbelDriver.resources
.relation('resourceName', sourceId, 'relationName', 'resourceNameDestination`)
.add(RESOURCE_ID, data);
That would create a relation called 'resourceName_relationName'.
Instead of this, the relation created should be
relationName. And if you want to use a different resource for the relation:Right now it is looking for another resource called
relationNamefor finding that RESOURCE_ID.Instead of this add another param,
resourcesDestor something like that