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...
For example I have connection type:   let usersType = new GraphQLObjectType({     name: 'Users',     description: 'users array',     fields: () => ({         array: {             type: userConnection,             description: '...
Link Github issue: https://github.com/facebook/relay/issues/1218  We have encountered an strange behaviour of Relay. I will try to explain the best I can.  So we have an "main" relay container that fetches the data for corresponding store, an...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.