0 This is the Error image im getting when I start my frontend Server Error TypeError: Cannot read properties of null (reading ‘useState’) This error happened while generating the page. Any console logs will be displayed in the terminal window. I am building a Full stack App using NextJs,GraphQL and codegen. When i run the […]
0 I’m in the process of migrating a GraphQl-java-kickstart project to Spring-GraphQl, as Spring-GraphQl was not available at the time when GraphQL was implemented in the project. The main reason for migrating is that the auto-configuration and annotation based approach offered by Spring may help remove much of the complex boilerplate code in the initial […]
7 I using C# 12. In C# 12 I can use primary constructor: public class UserService(IUnitOfWork uow) : IUserService { } Before C# 12 I used null checking for items that I inject in constructor: public class UserService : IUserService { private readonly IUnitOfWork _uow; public UserService(IUnitOfWork uow) { ArgumentNullException.ThrowIfNull(uow); _uow = uow; } } […]
0 I am using the graphql-request library to fetch data froma GraphQL endpoint. The endpoint returns some information about a user, based on a certain token associated to that user. Here is the type I’ve defined: export type PlayerInfo = { country: string, name: string|undefined, email: string, id: string, } Here are the two approaches […]
0 I’m using graphql from amplify I have a 2 models Conversation and Message. Message model belongs to Conversation (conversation has many messages) So when I get Conversation by some criteria I want my messages to be sorted based on created at property. Is there a way to do that? sorting graphql aws-amplify Share Improve […]
0 I am running a graphql mutation to upload an image to the server. And operation is done successfully. My only question is that how do i track the progress of image upload on frontend? What percentage of the image size is uploaded? I want to show it in the progressbar in the frontend. Below […]
0 Foreword: I am completely new to GraphQL so I am just trying to figure out what is the best practice when working with it So I need to call a GraphQL API written in Nestjs (more specifically, from a Rails server). There is this nice gem graphql-client that makes a Client to communicate with […]
0 What is the npm command to build and create package of Apollo Grapphql server application? I am using nodemon start command to run the application. But I want to create package and publish it in the server. Which npm command we can use for build and packaging? I am using nodemon start command to […]
12 I have functions like the following: const char* get_message() { return "This is a constant message, will NOT change forever!"; }; const char* get_message2() { return "message2"; }; And I’m planning to use them everywhere my app, even though in different threads. I’m wondering about the life time of these strings, i.e. whether it’s […]
0 i’m trying to fetch some leetcode stats using leetcode’s graphql schema. when i enter the query in the browser, it gives me a response, but it’s not responding to me when i use axios. here’s the query i enter in the browser: https://leetcode.com/graphql?query=query { questionSubmissionList( offset: 0, limit: 20, questionSlug: "two-sum" ) { lastKey […]