GraphQL: directive for GraphQL+- custom resolver (e.g Geolocation)

And I remember, @vardhanapoorv had tried this thing through Apollo federation (apollo acts as the middleware in this case). He can clarify more on this.