Questions

  • Can we install dedicated version of apollo graphql in our local machine, if yes what is the procedure to do it

    -1 I am working in a client project and we are planing to buy dedicated version of apollo graphql. Can we install dedicated version of apollo graphql in our local machine, if yes what is the procedure to do it https://www.apollographql.com/pricing/ I Searched for in internet but couldn’t find any website expalaining it, please help […]

  • 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 […]

  • How to fix code to avoid warning -Wunsafe-buffer-usage

    6 Before clang 16.0 I was able to compile all my projects using -Weveything without problems, fixing my code and paying attention to the (useful) warnings that this option gave. However, it seems that the -Wunsafe-buffer-usage was added in version 16 (my system updated to it recently) and then compiling any project is impossible without […]

  • 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 […]

  • Constructing a vector of structs (with some custom constructors) from exactly two string literals crashes. Why?

    18 Can you guess the output of this trivial program? #include <vector> #include <string> #include <exception> #include <iostream> int main() { try { struct X { explicit X(int) {} X(std::string) {} // Just to confuse you more… }; std::vector<X>{"a", "b"}; } catch (std::exception& x) { std::cerr << x.what(); } } Well, I couldn’t, which cost […]