substance / data

A uniform interface for domain data (deprecated)
http://code.substance.io/docs/substance-manual/
MIT License
655 stars 44 forks source link

api change proposal #18

Closed nikgraf closed 13 years ago

nikgraf commented 13 years ago

change api from

graph.set("/person/bart", {
  type: "/type/person",
  attr1: val1,
  attr2: val2
})

to

graph.set({
  _id: "/person/bart",
  type: "/type/person",
  attr1: val1,
  attr2: val2
})

i believe this is easier to understand …