Code Monkey home page Code Monkey logo

quasar-templates's People

Contributors

benoitranque avatar claustres avatar laurentpayot avatar lennonjesus avatar oozzal avatar pdanpdan avatar rstoenescu avatar smolinari avatar zuck avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

quasar-templates's Issues

quasar-graphql - using it with Apollo client

Hi,

I apologise for asking here, I'm not sure where else to post a question on this.

I'm trying to use the Quasar framework with the ApolloClient (ver 2.0). I have applied the quasar-graphql wrapper. The api is serving properly on port 3001 (confirmed with GraphiQL). The quasar client is being served on port 3002.

When my apollo client tries to post a graphql query, it is POSTing on port 3002, instead of 3001, and I can't find a way to change it, and I don't understand why this is happening

Do you have any ideas I can try?

My setup looks like this:

const client = new ApolloClient({
  link: new HttpLink({ uri: 'http://localhost:3001/graphql' }),
  cache: new InMemoryCache(),
  connectToDevTools: true
})

I can change the port there to anything I want, but the POST always goes to 'http://locahost:3002/graphql'

and the error message I get in the console is:

Request URL:http://localhost:3002/graphql
Request Method:POST
Status Code:404 Not Found
Remote Address:[::1]:3002
Referrer Policy:no-referrer-when-downgrade
Response Headers
view parsed
HTTP/1.1 404 Not Found
X-Powered-By: Express
Content-Security-Policy: default-src 'self'
X-Content-Type-Options: nosniff
Content-Type: text/html; charset=utf-8
Content-Length: 147
Date: Mon, 13 Nov 2017 12:32:32 GMT
Connection: keep-alive
Request Headers
view source
Accept:*/*
Accept-Encoding:gzip, deflate, br
Accept-Language:en-US,en;q=0.8
Cache-Control:no-cache
Connection:keep-alive
Content-Length:93
Content-Type:application/json
DNT:1
Host:localhost:3002
Origin:http://localhost:3002
Pragma:no-cache
Referer:http://localhost:3002/
User-Agent:Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36
Request Payload
view parsed

It seems to be picking up the port from quasar somewhere. Please help if you can!

Thanks
Adrian

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.