Questions

  • Rename types with graphql-codegen

    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), […]

  • How to get access to class IList members through GraphQL?

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

  • .NET8 supports Vector512, but why doesn’t Vector reach 512 bits?

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

  • MySQL query data returns null GraphQL node.js

    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 } = […]

  • How to avoid overspecifying fields in queries in graphql while avoiding multiple network requests across pages

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

  • Apollo Client gql lte, gte null values Issue

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

  • NextJS with Apollo and Graphql use of Fragment

    0 I would like to use same basic fragments in my query. But as soon as I use my fragment variable: ${NEXT_SEO_FRAGMENT} I got following Error: ApolloError: Response not successful: Received status code 500 my query: import { getApolloClient } from "../apollo-client"; import gql from ‘graphql-tag’ import { Locale } from "../types"; const NEXT_SEO_FRAGMENT = […]

  • SpringBoot2.7.x Graphql Query did not work

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

  • I am getting an error when using nestjs-tenancy with mongoose and graphql

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

  • Curl API call in PHP

    1 I’m new to PHP and trying to make a request to a third-party API using curl. This is what I am trying, but it is just responding with what is on the API’s root endpoint. $service_url = ‘https://api.kivaws.org/graphql’; $curl = curl_init($service_url); $curl_post_data = array( ‘Pragma’ => ‘no-cache’, ‘Origin’ => ‘https://api.kivaws.org’, ‘Accept-Encoding’ => ‘gzip, deflate’, […]