Giter Site home page Giter Site logo

Comments (10)

benwilson512 avatar benwilson512 commented on May 21, 2024

The GraphiQL that we have mounted by default lets you specify where to send queries.
image
Are you unable to enter the correct URL there?

from absinthe_plug.

ndarilek avatar ndarilek commented on May 21, 2024

from absinthe_plug.

benwilson512 avatar benwilson512 commented on May 21, 2024

It was my understanding that it would use the current location, but possibly not. This sounds like perhaps an issue that belongs on the graphiql project itself, it's a generic piece of javascript that while we provide an easy integration are not its authors.

from absinthe_plug.

ndarilek avatar ndarilek commented on May 21, 2024

from absinthe_plug.

ndarilek avatar ndarilek commented on May 21, 2024

from absinthe_plug.

benwilson512 avatar benwilson512 commented on May 21, 2024

I think you're confused about where this functionality exists. This functionality is not written in Elixir. We provide an EEX template, but that template literally just links to another project's javascript here: https://github.com/absinthe-graphql/absinthe_plug/blob/master/lib/absinthe/plug/graphql_toolbox.html.eex#L29

A few lines lower we pass in a tiny bit of config, which puts the default URL at the window location. That's it, everything else happens in the javascript contained in a totally different project. This is why I closed the issue, there's no evidence that changing code in this project will help you.

I do however have a theory about your issue. This particular GraphIQL tool uses local storage to persist a bunch of information, including the URL. Use the inspector to clear out the local storage for your host and see if that fixes it.

from absinthe_plug.

ndarilek avatar ndarilek commented on May 21, 2024

from absinthe_plug.

benwilson512 avatar benwilson512 commented on May 21, 2024

Do note that the javascript you linked to appears to be for the simplified graphiql interface whereas by default Absinthe exposes https://github.com/OlegIlyenko/graphql-toolbox which is a lot more advanced.

from absinthe_plug.

benwilson512 avatar benwilson512 commented on May 21, 2024

Glad that helped :)

from absinthe_plug.

bruce avatar bruce commented on May 21, 2024

Note we do want to update the version we link to as well: #37 (comment)

from absinthe_plug.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.