Constipated 6 week old

What can I do to help my daughter poop? She usually goes twice a day but didnt at all yesterday and just had a BM, but it was one hard ball. She struggled and acted like it was killing her.