This project is no longer under active development and has been archived. See https://ipld.io for information on the current state of IPLD selectors.
This selector actually implements multiple strategies
:
glob
regex
See the examples for better introduction
Which returns which subsets of the graphs have been matched.
Qml1..
{ name: "Jeromy", nick: "whyrusleeping"}
Qml2
{ name: "Juan", nick: "jdag"}
Qml3
{
name: "Nicola",
friends: [
{'/': "Qml1.."},
{'/': "Qml2.."}
]
}
.which('regex', cid3, '.*/name', callback)
//[ 'friends/0/name', 'friends/1/name' ]
.which('glob', cid3, '**/name', callback)
//[ 'friends/0/name', 'friends/1/name' ]
MIT