No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. maralefer
    M
    • Profile
    • Following 0
    • Followers 0
    • Topics 0
    • Posts 1
    • Best 1
    • Groups 0

    maralefer

    @maralefer

    1
    Reputation
    138
    Profile views
    1
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    maralefer Follow

    Best posts made by maralefer

    • RE: Using GraphQL and Apollo With The Latest Quasar

      @drum I create a plugin with quasar new plugin apolloclient, its looks like this:

      // import something here
      import { ApolloClient } from ‘apollo-client’
      import { HttpLink } from ‘apollo-link-http’
      import { InMemoryCache } from ‘apollo-cache-inmemory’
      import VueApollo from ‘vue-apollo’

      // leave the export, even if you don’t use it
      export default ({ app, router, Vue }) => {
      const httpLink = new HttpLink({
      uri: ‘https://graphene.miserver.com.ar/grap2’
      // ‘https://us-west-2.api.scaphold.io/graphql/dsvet’
      })
      const apolloClient = new ApolloClient({
      link: httpLink,
      cache: new InMemoryCache(),
      connectToDevTools: true
      })
      Vue.use(VueApollo)
      const apolloProvider = new VueApollo({
      defaultClient: apolloClient,
      defaultOptions: {
      $loadingKey: ‘loading’
      }
      })

      app.provide = apolloProvider.provide()

      }

      posted in Help
      M
      maralefer

    Latest posts made by maralefer

    • RE: Using GraphQL and Apollo With The Latest Quasar

      @drum I create a plugin with quasar new plugin apolloclient, its looks like this:

      // import something here
      import { ApolloClient } from ‘apollo-client’
      import { HttpLink } from ‘apollo-link-http’
      import { InMemoryCache } from ‘apollo-cache-inmemory’
      import VueApollo from ‘vue-apollo’

      // leave the export, even if you don’t use it
      export default ({ app, router, Vue }) => {
      const httpLink = new HttpLink({
      uri: ‘https://graphene.miserver.com.ar/grap2’
      // ‘https://us-west-2.api.scaphold.io/graphql/dsvet’
      })
      const apolloClient = new ApolloClient({
      link: httpLink,
      cache: new InMemoryCache(),
      connectToDevTools: true
      })
      Vue.use(VueApollo)
      const apolloProvider = new VueApollo({
      defaultClient: apolloClient,
      defaultOptions: {
      $loadingKey: ‘loading’
      }
      })

      app.provide = apolloProvider.provide()

      }

      posted in Help
      M
      maralefer