After I'm sending a createMessage mutation in my app, I want to update the local ApolloStore using updateQueries.  My setup looks as follows:  const ChatWithAllMessages = graphql(allMessages, {name: 'allMessagesQuery'})(Chat) export defau...
I have a <Query /> in my Home.js file  Home.js  <Query       query={GET_TODOS_BY_PRODUCT}       variables={{ id: state.get("selectedProduct.id"), completed: true }}     >       {({ data: { product } }) => {         return <M...
GitHub's new GraphQL API requires authentication with a token as the previous version. So, how do we add a 'Header' information into the HttpLink inside Apollo-Client?  const client = new ApolloClient({   link: new HttpLink({ uri: 'ht...
A very strange one here, so if anybody can shed light on it I will be impressed.   Good  When I use a <h1 /> inside a component and build the server with npm run dev everything will work as expected.  I can replace the h1 with the <Query /&g...
I have been reviewing the Apollo documentation but I do not see information of how to go about handling server errors in the Apollo client.  For example, suppose that the server either:     Times out    Becomes unreachable   Unexpectedly fails     Ho...
I am using the apollo-client library to query data from my Graphql server.  Some of the queries are sent to the server every 5 seconds through apollo polling ability.  Is there a generic way to add a custom header to all requests that are sent by my...
I have a React-Native app where I make requests to a GraphQL server. Everything works fine except I need a way to set the timeout on the request/client to 5 or 10 seconds. Currently the request takes a very long time before it times out (around 1 min...
I'm building nuxt.js app with typescript. This is my code:  <script lang='ts'>     import {Component, Vue} from 'nuxt-property-decorator';     import {LOCATION} from '~/constants/graphql/location';      @Component({...
Im using Vue with vue-apollo in the frontend and graphql stand-alone Apollo Server 2 with mongodb through mongoose in the backend. I have a simple blog application in which posts also have an Image. Everything works fine except uploading Images. I wa...
Could someone please help me in getting my first queries working with scaphold.io?  When I query the following to my scaphold, using the internal GraphiQL:  query AllPrograms {   viewer {     allPrograms{       edges {         node {           id...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.