title: Include url helpers in graphql-ruby resolvers
body: <p>I'm trying to access url helpers from <code>resolve</code> methods in <a href="https://github.com/rmosolgo/graphql-ruby" rel="nofollow noreferrer">graphql-ruby</a> to generate fields like <code>url</code>. I know I can do this:</p>
  
  <pre><code>EventType = GraphQL::ObjectType.define do
    field :url, !types.String do
      resolve -&gt;(event, _args, _ctx) do
        Rails.application.routes.url_helpers.event_path event
      end
    end
  end
  </code></pre>
  
  <p>I know it's possible to <code>include Rails.application.routes.url_helpers</code> in your models to avoid prefixing every call but how to do this with graphql-ruby?</p>
  
  <p>Additionally, if I call <code>event_url</code>, it doesn't have host and port. Obviously, I'd like to avoid adding <code>host: request.host</code> to every helper call.</p>