Right now the JS engine requires that the root node not have a parent, but the presence of a parent is a good indicator that only a subtree of some larger tree is being displayed. Since the root node for display is being explicitly stated in the json object, I think we should remove the 'parent_id has to be null in the root node' constraint.
Right now the JS engine requires that the root node not have a parent, but the presence of a parent is a good indicator that only a subtree of some larger tree is being displayed. Since the root node for display is being explicitly stated in the json object, I think we should remove the 'parent_id has to be null in the root node' constraint.