Comments (10)
The GraphiQL that we have mounted by default lets you specify where to send queries.
Are you unable to enter the correct URL there?
from absinthe_plug.
from absinthe_plug.
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.
from absinthe_plug.
from absinthe_plug.
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.
from absinthe_plug.
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.
Glad that helped :)
from absinthe_plug.
Note we do want to update the version we link to as well: #37 (comment)
from absinthe_plug.
Related Issues (20)
- Add GraphQL support for multipart form requests HOT 1
- How do I test file upload HOT 4
- Raise compile error if inconsistency in options HOT 1
- Dialyzer error using GraphiQL plug HOT 3
- is not a valid Absinthe.Schema with wrapped plugs in 1.5.1 HOT 2
- Race Condition Related to Code Compilation HOT 5
- Dynamically generated max complexity HOT 5
- upgrade from 1.5.3 to 1.5.4 breaks default pub sub option HOT 10
- How to update graphql-playground version HOT 1
- How to disable multi-operation queries HOT 1
- Allow using a struct as the absinthe context HOT 3
- Ability to opt out of batched execution on batch requests
- GraphiQL "proxies" graphql endpoint HOT 3
- Headers are not supported in Graphiql
- Possible to access context during subscription config? HOT 4
- Supporting POSTs with multipart/form-data is dangerous without CSRF protection HOT 2
- No query document supplied error HOT 1
- Support for HTTP Response Status HOT 13
- XSS vulnerability in GraphiQL implementation
- Support spec_compliant_errors in Plug options HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from absinthe_plug.