Questions tagged [relay]

Relay is a JavaScript framework for providing a data layer and client-server communication to web applications using the React view layer.

Relay is a JavaScript framework for providing a data layer and client-server communication to web applications using the React view layer.

656 questions
0
votes
1 answer

Relay Fragment Optional Arguments

Is it possible to optionally include parameters when creating a Relay query? See below I'm querying resources, and I'm hard coding the params here. I would like to conditionally include some of these arguments, for example date_gt and date_lt. At…
Tim
  • 4,471
  • 5
  • 36
  • 42
0
votes
1 answer

Integrating RelayJS and Azure table storage

The documentation on RelayJS says the RelayJS can use node.js as a GraphQL server, but not ASP.NET web service. How can I use RelayJS with ASP.NET web api end point?
wonderful world
  • 10,969
  • 20
  • 97
  • 194
0
votes
2 answers

GraphQL Relay hasNextPage

How does graphql generates hasNextPage if only "first" parameter passed? I am using return relay.connectionFromPromisedArray( global.app.get('model__user').getUsers(args), args ); and query: query RootQueryType { viewer { user(id:…
Artyom Trityak
  • 647
  • 6
  • 17
0
votes
1 answer

How to make props.relay.setVariables update my data?

I'm trying to use a search component's 'onChange' to filter results using this.props.relay.setVariables but nothing gets re-rendered. I'm also hoping that when it does filter, that it will still use the Shuffle component. We are making one trip to…
Michael Kaufman
  • 683
  • 1
  • 9
  • 19
0
votes
1 answer

Get iteration node variable in Relay and use inside getFragment?

I have such fragment: fragments: { Viewer: () => Relay.QL` fragment house on Viewer { House(id:$id){ id baths beds built city { name } description image …
Svitlana
  • 2,324
  • 4
  • 22
  • 31
0
votes
1 answer

How to do the sample GraphQL Relay mutation

I am just started working on GraphQL Relay in that I want to perform the mutation but it gives an error like this in my console Uncaught TypeError: Comment.getFragment is not a function Here is my Relay code: import Relay from…
Mahesh
  • 395
  • 1
  • 2
  • 18
0
votes
2 answers

doesn't have a field "clientMutationId" in Relay mutations

when I am trying to update a record in Relay using Relay Mutations I getting an error like this. doesn't have a field "clientMutationId" But I did't declare any clientMutationId in my GraphQL schema. Here is my code in Relay function…
Mahesh
  • 395
  • 1
  • 2
  • 18
0
votes
1 answer

server side rendering with react-router-relay and react-rails

My server side is rails and I'm using react-rails with server side rendering (prerender: true). Recently started using relay with react-router-relay but with that, server side rendering is no longer possible, as apparently fetching the data involves…
0
votes
2 answers

I try to implement a connection using relay and all the node's IDs are the same

I write a really simple schema using graphql, but some how all the IDs in the edges are the same. { "data": { "imageList": { "id": "SW1hZ2VMaXN0Og==", "images": { "edges": [ { …
Fan Jin
  • 2,412
  • 17
  • 25
0
votes
1 answer

Simple storage for relay starter kit

I'm learning Relay and GraphQL with the Relay starter kit from Facebook. I want to create a simple storage for my data, basically just to keep my GraphQL mutations somewhere. I will deal with a proper ORM and database later. Could I just dump the…
user2983816
  • 113
  • 1
  • 6
-1
votes
1 answer

Relay - usePreloadedQuery hook is suspending rendering while mounting with enzyme

I get the below error while trying to unit test a component which uses usePreloadedQuery: Error: A React component suspended while rendering, but no fallback UI was specified. Add a component higher in the tree to provide a…
T J
  • 42,762
  • 13
  • 83
  • 138
-1
votes
1 answer

ERROR : Unknown field 'discussion' on type 'Mutation'. with Relay and React `useMutation` hook

I'm facing an issue on which I don't find any way to solve on internet. Hoping someone could help me here :). I've followed the Relay step-by-step guide to improve myself on Relay and GraphQL…
-1
votes
1 answer

Cannot get property because an index signature declaring the expected key / value type is missing in null or undefined [1]

I am testing PermissionDetail component which has graphql fragment, that is the data of node of PermissionTable component. I am getting a flow type error in this line when getting mock data from query const permissionDetail =…
Jagrati
  • 11,474
  • 9
  • 35
  • 56
-1
votes
1 answer

PostGraphile subscriptions - what does "topic" refer to?

I'm using PgPubsub and I'm trying to get my head around listen and topic*:"" vis-a-vis what to put there. For example, let's say I have a component that renders a list of and I want to update the list when a Post is created or…
Kirk Ross
  • 6,413
  • 13
  • 61
  • 104
-1
votes
1 answer

CORS enabled, but adding cookies in header causes request to be blocked? I have enabled CORS with credentials server side, not sure how to solve this

Using express-session so need cookie id for authentication, but even with setting up CORS correctly (or what I thought to be) on front and back end I'm still getting issues. CORS is working without cookies enabled. Backend config const corsOptions =…
Will Cowan
  • 81
  • 8
1 2 3
43
44