Can eating pineapple before bed help you sleep?

The presence of melatonin in foods like pineapple is relatively minor and may not have a significant direct impact on your sleep. However, some argue that consuming foods with trace amounts of melatonin may still have a slight influence on sleep because they provide the building blocks and precursors for melatonin production in the body.