Allergies/Sensitivities

Monica
What's the rule for how you can tell whether your baby has an allergy or sensitivity to something you've eaten? How long after I eat does it take for that thing to hit my breast milk? And how long does it stay? Trying to figure out if my little guy gets gassy when I eat beans...