16 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
28
views
Adding multiple node fields in Graphql query which follows relay cursor specifications
As per graphql cursor specification,
Each connection object should have list of Edges. Each edge will have a node field.
So schema for userData query will look like this
type query {
userData(id: ...
2
votes
1
answer
151
views
GraphQLResolveInfo' object has no attribute 'field_asts'"
So I am using graphene-django==3.1.2, which didn't let me importfrom graphql import ResolveInfo . Therefore, I used from graphql import GraphQLResolveInfo as ResolveInfo
However the error I see now is ...
1
vote
1
answer
550
views
Should I minimise the number of subscriptions in my relay application?
I am new to using graphql and we have built a backend graphql server using elixir and we are building a frontend app using react and react-relay.
My question is whether it is better to have one large ...
1
vote
0
answers
28
views
GraphQL Design: May edge have own subedges (connections, relationships)?
Let's say that a user creates an order with products in a e-shop, but ordered products have their options to be selected during order process. So user has to select products with some options to buy.
...
1
vote
0
answers
84
views
SyntaxError: The requested module 'graphql-relay' does not provide an export named 'fromGlobalId' [duplicate]
I am tring to use fromGlobalId from graphql-relay:
import { nodeDefinitions, fromGlobalId } from 'graphql-relay';
import db from './database/index.js';
const idResolver = (globalId, context) => {
...
0
votes
1
answer
136
views
Problem with update mutation in Relay project
I am working on a Relay project and there is a problem with the update mutation. I'm new to Relay, and it's hard for me to establish what the problem is related to - with promises or with Relay ...
user avatar
user11553898
0
votes
2
answers
107
views
How to use remove mutation in Relay server?
I work with an express graphql server, prepared for react-relay.
Queries and createPost mutation works correctly in graphiql interface.
There is a problem with removePost mutation.
Trying to use it, ...
user avatar
user11553898
1
vote
0
answers
695
views
GraphQL relay connectionFromArraySlice
There isn't any documentation for how the array meta info (arrayLength and sliceStart) should be implemented using facebook's graphql-relay-js helper library.
https://github.com/graphql/graphql-relay-...
0
votes
0
answers
324
views
How can I use Relay GraphQL client to upload the files
I have the following use case:
I have an Apollo compatible file (form-multipart) GraphQL resolver for handling files (in the backend).
The React App is using the Relay client.
How can I make an ...
0
votes
0
answers
430
views
update connection using relay subscription updater
I have a relay subscription setup in which I am getting the data in the updater which looks like this https://gist.github.com/ydvsailendar/6b9569bbcbc269246e299eb5cce18a80#file-gistfile1-txt-L10
I ...
2
votes
2
answers
3k
views
Cyclic schema giving error as "Error: Schema must contain unique named types but contains multiple types named "Node"."
I am new to 'GraphQL' using nodejs. I am stucked into bi-directional schema mapping. posts <-> authors. Using graphql and graphql-relay module.
Following are the two schema we are using.
--posts....
0
votes
1
answer
864
views
"Unknown argument \"email\" on field \"forgotPassword\" of type \"Mutation\"."
I would like to have an endpoint "forgotPassword" where an input is email, and there is no output (the result of the action is an email sent to the user). This looks like a mutation, rather than a ...
23
votes
1
answer
12k
views
github graphql api, what does "clientMutationId" mean?
I saw clientMutationId field in example-strong-typing documentation.
mutation {
addComment(input:{clientMutationId: 1234, subjectId: "MDA6SXNzdWUyMjcyMDA2MTT=", body: "Looks good to ...
0
votes
1
answer
791
views
Relay not updating after doing subsequent mutations
Currently, we stumbled across a problem doing mutation in relay modern. We have a diary which contains many entries. Whenever user add a entry which day of diary doesn't exist, we also create a diary ...
0
votes
0
answers
204
views
In Graphql-relay.js mutation always return TypeError failed to fetch
When i include bcrypt to my mutation it is return failed to fetch error.
No mattter sync/async. When I generate hash only for logging , it showing the same error. Why it is acting like that?
bcrypt ...