Here is the mutation:  const createNotebook = mutationWithClientMutationId ({     name: 'CreateNotebook',     inputFields: {         token: {             type: GraphQLString,         },          details: {             type: NotebookDetails,...
A file upload seems like a mutation.  It's often accompanied by other data.  But it's a big binary blob, so I'm not sure how GraphQL can deal with it.  How would you integrate file uploads into an app built with Relay?...
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...
need some help. Let say Im requesting the following data:  {   parent {     obj1    {         value1     }     obj2    {         value2     }   } }   And I need the result of value2 in value1 resolver for calculation.  Thought of returning a promise...
I was starting with GraphQL and I was unable to comprehend how we can throw errors in GraphQL   I went through a couple of articles on the web but almost all of them use Apollo and the code-structure looks very different than how I work.   Consider t...
I am looking for help with GatsbyJS and Contentful. The docs aren't quite giving me enough info.  I am looking to programmatically create pages based on contentful data. In this case, the data type is a retail "Store" with a gatsby page a...
I'm writing unit tests to check my api. Before I merged my git test branch with my dev branch everything was fine, but then I started to get this error:  App running at: http://localhost:4096/ spacejam: meteor is ready spacejam: spawning phantomj...
I am in the process of learning graphql and react-apollo. I have set up a search query in my code. I am unsure how to pass a variable from my code (i.e. this.state.search) to my grapnql call.  I have looked at many answers including this one, but it...
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...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.