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?...
I am able to send cookies in header while querying data from Graphql using this code snippet :       Relay.injectNetworkLayer(         new Relay.DefaultNetworkLayer(GQL_URL, {             credentials: 'same-origin',      }));  This works well...
I have working tinySQL GraphQL server running at 127.0.0.1:3000. I would like to create any working Relay client for it. I mean any working example for query:   {   groupBy (age: 20, job: "student") {     id,     name,     age,     job   } }...
I have this function, that i need to define an async function inside it:     _refetchConnection = (page) => { // query for cursor page      const refetchVariables =  async (fragmentVariables) => {     let pageCursor;     if(page !== 1) {...
And if they can what are the ways to integrate them? Some (anti)patterns?  I have invested some time in learning both of them but still can't figure out the way to leverage both of them (with their strong points) in a single application....
I have a project that uses the convo GraphQL, Relay and Flow. Is there a way to use GraphQL schema to feed Flow so the React props can be typed without redeclaring the types?   For Relay I'm already using the script that generates two files: sche...
I cannot navigate to /users in my app, because it doesn`t trigger fetching of all queries that I would expect it should.   My app consists of an App component and some components that contain actual content like Dashboard or UserList. There is also a...
I'm having some issues setting up a refetchContainer in Relay Modern. A parent component is the QueryRenderer, which runs an initial query, populating the child component's props appropriately (a-prop-riately? eh? eh?!) . The refetchContainer...
I am trying out Relay and GraphQL. When I am doing the schema I am doing this:  let articleQLO = new GraphQLObjectType({   name: 'Article',   description: 'An article',   fields: () => ({     _id: globalIdField('Article'),...
I can successfully do graphql/relay queries and mutations with CURL and GraphiQL tool:    However, in my react/relay app I can query and get the data into the app, but  every time I try to mutate something in my app, I get this error in the console:...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.