baby constipated

Ra
Baby girl is having trouble pooping. She's straining but only toots coming out. How can I help her have a BM?