Questions tagged [relayjs]

Relay stands out as a versatile JavaScript framework optimized for crafting React applications that prioritize data integration and seamless interactivity.

How to Enhance GraphQL Mutation OutputFields with a Function Generator

I'm encountering issues while trying to incorporate a function generator within a GraphQL mutation. The function generator is utilized to streamline the promise chain inside the mutation. Prior to refactoring the code, everything was functioning corr ...

GraphQL/Relay Schema "Field cannot be queried..."

I'm encountering an issue when trying to query specific fields in graphql/relay. My goal is to retrieve the "courseName" field for Courses from the schema provided below. For instance, if I query the User with: { user(id:1){firstname,lastname}} T ...

Dynamic content in NextJS: First, statically render a page and then customize it with user-specific data

I need advice on how to handle a specific data fetching scenario with NextJS static page rendering. We have a page that showcases articles, similar to this example. The content is the same for all users (perfect for static rendering), but lock icons should ...

Ways to prevent the inclusion of unnecessary fields in a graphql query when using Relay.createContainer

Currently developing a UI application using reactjs and integrating graphql for data retrieval. Utilizing Relay for this purpose, but encountering an issue where the graphql query created in Relay.createContainer is adding extra fields such as "id". Is the ...

Utilizing the power of `mutateAndGetPayload` to yield

I have been attempting to use the mutateAndGetPayload function of a mutationWithClientMutationId to return a Promise, but I am encountering an issue where the request remains pending and eventually times out without receiving a response. Here is some exam ...