File tree Expand file tree Collapse file tree 1 file changed +22
-1
lines changed Expand file tree Collapse file tree 1 file changed +22
-1
lines changed Original file line number Diff line number Diff line change 11## domain-tree
22
3- Store domain data in a tree structure
3+ Store domain data in a tree structure that maintains links to parent and sub domains.
4+
5+ The intention is sub domains can query data for their parents and use it, if required.
46
57[ ![ Build status] ( https://badge.buildkite.com/1745a99401bdd68a6331273b5f95a62d8c2cdae5e6e338c3ef.svg )] ( https://buildkite.com/deployable/domain-tree-test )
68
@@ -19,4 +21,23 @@ Store domain data in a tree structure
1921 console.log( tree )
2022 console.log( tree.toJSON() )
2123
24+ Results in a structure:
25+
26+ com:
27+ domain: 'com'
28+ subdomain:
29+ whatever:
30+ domain: 'whatever.com'
31+ subdomain:
32+ test:
33+ domain: 'test.whatever.com'
34+ _data: test: true
35+ two:
36+ domain: 'two.whatever.com'
37+ _data: two: true
38+ other:
39+ domain: 'other.com'
40+ _data: other: true
41+
42+
2243
You can’t perform that action at this time.
0 commit comments