Tag: graphql
-
Recursive GraphQL query
0 I have the following GraphQL query: query MyQuery { product(uid: "1234") { productCategoryConnection: product_categoryConnection { edges { node { … on ProductCategory { title identifier parentCategoryConnection: parent_categoryConnection { edges { node { … on ProductCategory { title identifier parentCategoryConnection: parent_categoryConnection { edges { node { … on ProductCategory { title identifier parentCategoryConnection: parent_categoryConnection {…
-
GraphQl says “bad token” when connecting to Artifactory endpoint
0 I’m trying got make some request as the documentation curl -H "Authorization: Bearer <Your Token>" -XPOST https://<server:port>/metadata/api/v1/query -d ‘{"query":"…" }’ Also directly in https://artifactory.com:PORT/metadata/api/v1/query/graphiql. I previously generated my access token as admin in Jfrog but each time I send a request I get a "bad token" message. Should I use a special TOKEN? graphql…
-
GraphQL circular dependency JSON
-1 I am trying to pass an input object to a GraphQL object that looks like this: input User { id: ID posts: [Post] } input Post { id: ID user: User } When pass an input object of type User which has a circular dependency with Post, I get a circular dependency error in…
-
Closing all WebSocket sessions using Spring GraphQL
0 I’m working on a Spring GraphQL (newest spring-boot-starter-graphql) project and I’m using WebSocket to establish subscriptions. However, I’m having trouble finding a way to close all WebSocket sessions programmatically. I’ve looked into the documentation and searched for examples, but I couldn’t find a clear solution specific to Spring GraphQL. Most of the resources I…
-
Trying to build custom filter using apollo errors released with latest version 4, using nestjs
-1 I am trying to build an custom exception filter for graphql host using nestjs and apollo errors with all the standard codes, but not able to see any documentation for graphql host. graphql nestjs apollo-server Share Improve this question Follow edited 1 hour ago Krish909 asked 2 hours ago Krish909Krish909 7722 silver badges1212 bronze…
-
How to solve N+1 problem using leangen/graphql-spqr
0 Suppose I have below query method defined, Lets say getAllBooks returns 10 books, now if we query for price too, price method will be called multiple times (10 times in this case). How can I batch the call to price method. @GraphQLQuery(name = "getAllBooks", description = "Get all books") public List<Book> getAllBooks() { return…
-
Material-UI TextField select still only shows the old values
0 I have the following code, the values and change when another Dialog is completed and it will trigger useEffect to refetch data from the server but the Material-UI TextField select still only shows the old values (new value is not being shown). import { Button, Dialog, DialogActions, DialogContent, DialogTitle, MenuItem, } from ‘@mui/material’; import…
-
Remix shopify app , in action can i do a fetch api request and get the response and from that response , i create a server side graphql mutation
0 So i’m new to shopify dev app , and i just installed a project in which i’m learning how to use the Remix framework . let me explain to you what i’m trying to achieve : 1 – i’m creating a shopify app , in which when a person has a shopify store and…
-
nestjs/graphql: How to return mixed array of values and nulls?
0 I’m using @nestjs/graphql to build graphql API. I have the following object @ObjectType(‘Round’) export class RoundDto { @Field(() => GraphQLInt) round: number; @Field(() => [[GraphQLString]]) teams: Nullable<[string, string]>[]; } How Can I declare the teams field to return mixed values of string and null? Do I need to write own scalar for it? I’m…
-
How does the graphql-flutter cache update work when using subscriptions?
0 I am trying to build an app that uses GraphQL with the graphql-flutter package and with Blocs. I generated my graphql classes with the graphql_codegen package. In this app a list of events (the ‘History’) is shown. A few items are loaded, and after this ‘infinitive scroll’ will execute the ‘fetch more’ calls. The…