-
Notifications
You must be signed in to change notification settings - Fork 1
Draft Session
Maximilian Klein edited this page Sep 7, 2016
·
1 revision
Some possible query formats
inc.node(['a', 'b'])
inc.node('»a»b') // = inc.node(['a', 'b'])
inc.node('/std/const') // = first const node found in inc.
inc.nodes('/std/const') // = all const nodes in inc
inc.nodesDeep('/std/const') // = all const nodes in inc and in its children
inc.node('#djhauj3433jasdj') // query by unique id
inc.addEdge('/std/const@0', '/math/add@1', {noStrict: true}) // noStrict does not throw exception if the nodes are not uniquely describe by the selector
inc.addEdge('»a»b', '#askjdhaskjdhas') //throws error if it is not possible to connect the nodes.
inc.hasEdge('/std/const@0', '/math/add@1')