yes, there's awareness of a null parentId in the state implementation. In the case of id, returning null tells elastic search to assign an id.