0 I am trying to create Category Tree with Node.js, Apollo Server, GraphQL, Mongoose technologies. But when I want to get the created Category or Subcategory data, the output is not what I want. Output; { "data": { "getCategories": { "success": true, "response_code": "categories-successfully-retrieved", "message": "Categories Successfully Retrieved!", "categories": [ { "_id": "655a1b6018951b0985fd7635", "name": "K […]
4 I’m working on a legacy codebase where, in our GraphQL schema, an interface was defined as ‘Subscription’: interface Subscription { fieldOne: String fieldTwo: String } type FirstSubscriptionType implements Subscription { anotherField: String } type SecondSubscriptionType implements Subscription { yetAnotherField: String } This has worked fine (we don’t use subscriptions and don’t have plans to), […]
0 I have a simple Graphql query like this public class Query { public async Task<IPagedList<Book>> Books(int pageIndex, int pageSize) { var data = new List<Book>() { new() { Title = "C# in depth.", Author = new Author { Name = "Jon Skeet" } },new() { Title = "How to cook Phở", Author = new […]
7 My CPU is AMD Ryzen 7 7840H which supports AVX-512 instruction set. When I run the .NET8 program, the value of Vector512.IsHardwareAccelerated is true. But System.Numerics.Vector<T> is still 256-bit, and does not reach 512-bit. Why doesn’t the Vector<T> type reach 512 bits in length? Is it currently unsupported, or do I need to tweak […]
0 I’m having trouble handling MySQL query data in the resolve function of GraphQL objects. The data returns null in GraphiQL despite printing with console.log(). I’ve tried using JSON.parse(). I have the following code: Schema.js const graphql = require(‘graphql’); const queries = require(‘../mysql/queries’); const { GraphQLObjectType, GraphQLString, GraphQLSchema, GraphQLID, GraphQLInt, GraphQLFloat, GraphQLList, GraphQLNonNull } = […]
0 If I have two pages, StepsList and StepDetail, I understand it’s impossible to avoid overfetching on the first page (StepsList) if we want to avoid a second network request on StepDetail // StepsList steps { id name <- I have to specify this field here even if it’s not used, to avoid a network […]
0 I have this query using to query from a graphql subgraph. I use apollo client in my Next.js front-end to query data. This is my query: const DOMAIN_FIELDS = gql` fragment DomainFields on Domain { expires id isListed name listingPrice listingExpiresAt lastSalePrice owner tokenId seller } `; export const GET_DOMAINS = gql` ${DOMAIN_FIELDS} query […]
0 first sorry im not good at english that is my setting, and i call query, SpringBoot is work, query is work but return nothing, not null, just return nothing in postman how can i resolve this… 🙁 programming is so hard @Controller @Transactional class MemberGraphController ( private val userRepository: UserRepository, private val passwordEncoder: PasswordEncoder […]
0 With basic setup as outlined in the docs https://github.com/needle-innovision/nestjs-tenancy module doesn’t work with nestjs and graphql. After little debugging I found that "getTenantFromRequest" in the TenancyCore module called twice. In first call req was available and I was able to capture the header. But in the second call req was null. Which case tenantId […]