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
8
votes
2 answers

Does Apollo Stack support global object identification like the node interface of Relay?

I am very new in both Apollo Stack and Relay. I am trying to choose between them to invest my time. After finish reading the book Learning GraphQL and Relay, I turned to Apollo to learn what it has to offer but right now there are not much resources…
kkkkkkk
  • 7,628
  • 2
  • 18
  • 31
8
votes
2 answers

How to use Relay/GraphQL with Loopback?

Any working solutions of using Relay/GraphQL with Loopback? I guess a few things I'm considering are how to access the database (since I'm assuming going through the ORM wouldn't be possible) and how to leverage the api generators when using…
Detuned
  • 3,652
  • 4
  • 27
  • 54
8
votes
1 answer

Is it possible to use GraphQL with an offline mobile database like SQLite or PouchDB

I am looking at Relay / GraphQL. Looks great to use with React but my main concern is whether it is possible to use GraphQL in an offline mode. In my Hybrid app built currently using Ionic Framework (AngularJs based), am planning to shift out to…
Amrudesh
  • 305
  • 4
  • 6
7
votes
1 answer

(550 5.1.1 Relay not allowed APPLE) I can't send an email from a gmail address to a private apple address

I set up my domain name and private email address in Certificates, Identifiers & Profiles. Both are SPF checked. I just want to send manually an email from my email(the one from certificate which matches bot private email and domain from…
7
votes
1 answer

fragment cannot be spread here as objects of type "Query"

Trying out relay with react and ran into this today. Here is what I've done so far. Root Query: query { tasks { id taskName taskStatus userId } } React component hierarchy App ↳--TaskList (props: tasks) ↳--TaskListItem…
Giridhar Karnik
  • 2,213
  • 4
  • 27
  • 47
7
votes
1 answer

react-admin and connection pagination

I currently have a GraphQL API that uses connection based pagination as defined in https://graphql.org/learn/pagination/ which is what the Relay client uses. I have looked at ra-data-graphql-simple but that expects the GraphQL server to return…
Owen Ben Davies
  • 259
  • 2
  • 8
7
votes
2 answers

React GraphQL Relay - How to do a simple query?

The Goal: I'm trying to query a specific character from a GraphQL server with relay. The Problem: The query works in GraphiQL. But here, when running "relay-compiler": "^1.4.1" I'm getting... ERROR: Parse error: Error: FindGraphQLTags: Operation…
user6198643
7
votes
0 answers

How is next cursor in this Instagram json response encoded

When appending ?__a=1 to a page on Instagram it is possible to view the JSON, as in this link: https://www.instagram.com/explore/tags/malta/?__a=1. This response contains an end_cursor field that references the last object in the response. The…
Thomas Nys
  • 359
  • 3
  • 16
7
votes
2 answers

ES6 Fat Arrow and Parentheses `(...) => ({...})`

I've been working through some Graph QL/React/Relay examples and I ran into some strange syntax. When defining the fields in Graph QL Objects the following syntax is used: const xType = new GraphQLObjectType({ name: 'X', description: 'A made up…
Tim Hope
  • 784
  • 1
  • 7
  • 17
6
votes
2 answers

Is it possible to accessing GraphQL validation errors from a Relay mutation?

I'm somewhat new to GraphQL, so, still piecing all moving parts together in my head. On my server side I'm using TypeGraphQL which uses class-validator to perform validation of the queries coming in. On the client side I'm using Relay. When the…
Pablo Fernandez
  • 279,434
  • 135
  • 377
  • 622
6
votes
1 answer

How to deal with nested routing in Relay Modern v6 / experimental

I know the relay documentation states that react-router v4/5 is no good with Relay since they changed to dynamic routing, but if you look really closely it always says: "Last updated on 2017-6-3 by Jimmy Jia" And I really do not want to have to…
Dac0d3r
  • 2,176
  • 6
  • 40
  • 76
6
votes
0 answers

Refetch container refetches, but does not update the view

My application looks something like what's included in the snippets below. (I've left out a lot of the implementation details in the hopes that the code below is sufficient to get my question across). SampleApp.js const SampleAppQuery = graphql` …
6
votes
2 answers

How granular should Relay/Apollo fragments be?

I'm using GraphQL + Relay in my app and find myself wrapping almost every component with createFragmentContainer, including those very low in the DOM hierarchy (usually functional components). Is that the right way to use fragments? I'm wondering…
Yangshun Tay
  • 49,270
  • 33
  • 114
  • 141
6
votes
0 answers

How to use optimisticUpdater and updater in relay modern for create without edges?

how do I update the ui with a new item in relay modern? I have all other CRUD working and but can't figure out the updater on commit mutation for a new item. When I refresh the page it there. All examples use viewer object which I don't have one in…
otissv
  • 815
  • 1
  • 10
  • 17
6
votes
1 answer

Given a set of GraphQL variable types, is it possible to use the client schema to create a map of all valid values for each type in the set

Title mostly says it all: I'm building a react / relay application which will allow the user to dynamically create charts at runtime displaying their various income streams over a specified time range. One feature of this chart is the ability of the…
wvandaal
  • 4,265
  • 2
  • 16
  • 27
1
2
3
43 44