relaymodern Questions
1
I am struggling with react-router and relay integration.
As of now, I stick to this example
It uses the useLazyLoadQuery hook, and although everything seems to work just fine, I also see another wa...
Westmoreland asked 13/7, 2021 at 8:12
3
I started to use graphQl with react relay. And I followed some tutorials and I can able to get and post with the help of mutations and queries. Everything works fine but my question here is,
Whe...
Tetrastichous asked 31/1, 2018 at 20:20
0
I'm new in graphql. I need to perform a mutation using Relay Modern in a React app. According to docs mutation payload can be different from success response to error response. Everything goes fine...
Eutrophic asked 11/10, 2019 at 16:47
1
Solved
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
↳--TaskL...
Gentlefolk asked 22/4, 2019 at 16:25
0
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 acro...
Swearword asked 27/2, 2019 at 22:19
2
Solved
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...
...
Brilliant asked 24/11, 2017 at 23:9
2
Am trying to test react relay modern container, but am having this issue.
TypeError: Cannot read property 'environment' of undefined
Here is the test code:
test('render component', () => {
...
Swords asked 26/8, 2017 at 16:23
1
Solved
I am using the relay compiler and it is not letting me compile a schema with a type that implements multiple interfaces. I made a small test project:
package.json
{
"scripts": {
"relay": "relay...
Gyro asked 27/3, 2018 at 20:6
1
Solved
I'm trying to add a user using relay , below is my schema file
schema.graphql
createUser(input: CreateUserInput!): UserPayload
input CreateUserInput {
clientMutationId: String
data: Crea...
Britneybritni asked 14/3, 2018 at 14:50
2
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-p...
Uncinate asked 21/7, 2017 at 19:48
1
Solved
I have a root query of songs, this is in a pagination container.
I then have a nested property on songs called comments that I also want to be paginated because I don't want to load 10k comments fo...
Oribella asked 7/12, 2017 at 16:47
0
I'm working with Relay Modern on Project. But I'm not sure how to send data from a place when I put fragment
to place where Is component placed.
for example:
this is components composition
-Pa...
Nickolas asked 11/11, 2017 at 10:58
0
I'm trying to create a live search-result component(lazy load one). It works perfectly for the first time but refetch doesn't update the data. I see the request and respoonse in Network tab! so it ...
Betterment asked 18/7, 2017 at 8:6
1
Solved
I'm using Relay Modern (compat). I have a fragment that contains a field that has one argument, but I can't find a way of passing the variable value from the parent component:
// MyFragmentCompone...
Scalage asked 26/6, 2017 at 5:15
1
© 2022 - 2024 — McMap. All rights reserved.