Working api other than text not going into mongodb