Federation with same entity but different database connection

Given I have an entity that is the same in 2 databases. How can I tell apollo federation under what circumstances the entity should get data from the one database or the other?