data icon indicating copy to clipboard operation
data copied to clipboard

add append/remove to modify graph node relations

Open nikgraf opened this issue 14 years ago • 0 comments

I'm not sure but it, could look like

Append

var bart = graph.get('/person/bart'); // Data.Object
bart.append('locations', '/location/springfield');

Parameters of append:

  • relation property name
  • object _id
  • (option with default false) boolean for adding back-link

Remove

bart.remove('locations', '/location/springfield');

Parameters of append:

  • relation property name
  • object _id
  • (option with default false) boolean for removing back-link

nikgraf avatar Jun 17 '11 11:06 nikgraf