0 Currently I’m creating an http link with a relative URI. This works when the server is running locally, and also works when the client and server are hosted remotely: const httpLink = createHttpLink({ uri: ‘/.netlify/functions/foo’, }); const authLink = setContext((_, { headers }) => { const token = process.env.REACT_APP_TOKEN return { headers: { …headers, […]
0 Is there any code example that shows how we can use the Solace pubsub+ as a source and watch for events such as insertion or update at the database at the graphql server level and leverage graphql subscription service ? I came across example with rabbitmq to achieve this but I am looking for […]
0 I use https://github.com/99designs/gqlgen for generating golang code from graphql schema. I need to be able to add gorm tags to the resulting golang types. For that, I declare a directive for custom go tags (in schema.directives.gql): directive @goTag( key: String! value: String ) on INPUT_FIELD_DEFINITION | FIELD_DEFINITION Then I use it the following way […]
0 I want to perform load testing using Postman for GraphQL API. The requirement is that I need to confirm whether the application is able to withstand 200 concurrent requests. But in Postman Canary I am not able to specify 200 concurrent requests. Can any one help on this. graphql postman load-testing web-api-testing Share Improve […]
0 I have quiz api in nestjs, i am using typeORM for saving data, I want to do following transaction: create quiz in quiz table with title and auto generated Id and empty array of questions for each question try to save question in data base with generated quiz_id and questions input save quiz and […]
28 In C++ loops as for(;;) {} are undefined behavior, whereas they are not in C(?). On P2809R0. Trivial infinite loops are not Undefined Behavior, it is expressed that there are good reasons for doing so. Are there any simple examples to make that clear? c++ c loops optimization undefined-behavior Share Improve this question Follow […]
11 I’ve read this Integral promotion: prvalues of small integral types (such as char) may be converted to prvalues of larger integral types (such as int). – first line […details – not important…] Note that all other conversions are not promotions; for example, overload resolution chooses char -> int (promotion) over char -> short (conversion). […]
0 I have a graphql extension for vscode. It works fine, I got a highlight and param hints but can’t get fragments to work properly.. client: { service: { name: ‘test’, localSchemaFile: ‘./schema.json’, includes: [‘./graphql/**/*.graphql’], }, }, } This is my setup, and I import fragment with line… #import "…/file.graphql" and vscode says "unknown fragment" […]
0 Can some one help me to solve the following error? I run the graph-node with docker-compose using the following command: docker compose up after the graph-node run successfully I execute the following command: docker compose exec -it graph-node graphman config check but I got the following error: Error: Configuration error Caused by: No such […]
0 I’m using @apollo/client version 3.7.3 in a react.js, typescript application. After fetching a list of objects from the server, some values are removed from the cache spontaneously! So when the client gets the data from the server, it stores them in the cache to be used in the UI and the cache version is […]