Skip to content
This repository has been archived by the owner on Jul 25, 2024. It is now read-only.

Append graphql to the fetcher URL in template #33

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion templates/graphiql.eex
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ add "&raw" to the end of the URL within a browser.
function graphQLFetcher(graphQLParams) {
// NOTE: This fetch URL should be relative to the current URL
// This is so that the GraphQL Elixir Plug can be mounted anywhere
return fetch(window.location.origin + window.location.pathname, {
return fetch(window.location.origin + window.location.pathname + 'graphql', {
method: 'post',
headers: {
'Accept': 'application/json',
Expand Down