Hi Ben,
Thanks for your reply. Creating classes works, but they seem to be only available to admins. I assume I could create facets in the same way, but it looks like I have to write something first. I'm most willing to do this, but perhaps we can have some discussion first about the best way to achieve the common goal. Allow me to elaborate on my own needs.
At first I thought I would be helped by creating only two models, Node and Relationship, and mimic the neo4j graph db api, only very plainly. The anonymous models work great for my purposes, but mongodb can have only a limited number of indices per collection, and I'm running out, so I'll have to create submodels. Everything was restful, but not anymore... Creating submodels via rest shouldn't be hard with the extends property (didn't test this yet). Creating facets is a bit more complex, for the need to extend from Permissive/Restrictive. Perhaps 'extends' could be used here to indicate the authorization level?
As an aside, shouldn't indices on models be propagated to the storage layer? In mongodb this would be very simple, but perhaps there is a reason not to do this?
Looking forward to any input.