4 I have a graphql mutation that gets an image from the frontend, and that then is processed and optimized on my server. But I can’t figure out how to pass my image to sharp. Here is my code: const Mutation = { createImage: async (_, { data }) => { const { file } […]
0 My function is executed 4 times ? (I am using GrahQL, Appolo-Client, React) One of the issues is that my query returns set of images, which are hosted on S3 and page keeps refreshing with new urls. import React, { useState } from "react" import { useQuery } from "@apollo/client" import styled from "styled-components" […]
0 I am using com.netflix.graphql.dgs:graphql-dgs-client:4.9.16 along with HttpClient (JDK 17) I am creating graphql client using below. GraphQLCLient graphQLClient = GraphQLClient.createCustom( host-url, requestExecutor::exec); And my request executor is based on HttpClient and it’s implementation is roughly as below – import com.netflix.graphql.dgs.client.HttpResponse; import java.net.URI; import java.net.http.HttpClient; import java.net.http.HttpClient.Version; import java.net.http.HttpRequest; import java.net.http.HttpRequest.BodyPublishers; import java.util.List; import java.util.Map; […]
0 I have a website that sends queries to the server using ‘Apollo graphql client’. I have set up an interface that will be displayed when this website cannot connect to the server, i.e. when it gets an error ‘Error: connect ECONNREFUSED’. I can test this manually by shutting down the server. I want to […]
0 I want to pose a question that has been bothering me for quite some time. A project I am working on has decided (some time ago) to use a UI written in React that communicates with the backend ONLY using GraphQL query/mutations (with all the various Redux, RTK, etc). Now, as long as it’s […]
0 I have the following query { group(fullPath: "X") { issues { count } projects { nodes { name issues(sort: CREATED_DESC, state: opened ) { count edges { node { iid title description notes { nodes { id body author { name } } } } } } } } } } It gives me […]
10 I’ve got a type called Article in my schema: type Article { id: ID! updated: DateTime headline: String subline: String } For updates to it, there’s a corresponding input type that is used by a updateArticle(id: ID!, article: ArticleInput!) mutation: input ArticleInput { headline: String subline: String } The mutation itself looks like this: […]
2 Let’s say i have two entities: // user.entity.ts @ObjectType() @Entity() export class User { @Field() @PrimaryGeneratedColumn(‘uuid’) id: string; @Field() @Column({ unique: true }) username: string; @Column({ select: false }) password: string; @Field(() => [Task]) @OneToMany(() => Task, (task) => task.author) authorOfTasks: Task[] } and // task.entity.ts @ObjectType() @Entity() export class Task { @Field() @PrimaryGeneratedColumn(‘uuid’) […]
0 I am currently using graphql_flutter: ^5.1.2 for fetching Graphql api. On the host server there is used httponly cookie based authentication. In react there is http only option for cookie but on graphql_flutter i can’t find any option like that . I already test this system using dio client . But it doesn’t work […]
0 I have 2 data tables: Project and Reason. Each Project with a unique ID has a bunch of reasons tied to it with their own unique ID. ProjectId is a foreign key to Reason. I want to pull up a single Reason with a given ProjectId and a ReasonId, but ReasonId exists in the […]