I want to implement a way to switch over different links based on the context set in graphql query. What I did so far is something like this which is working fine but doesn\'t s