Questions

  • Multiple canonical definitions error when using GraphQL-Mesh

    0 I am trying to set up graphql-mesh federation with existing set of services that currently use schema stitching. Schemas were updated and federation was enabled in the services, and it seems to work with apollo-federation, but not with Mesh. When trying to run mesh build, I’m getting the error Multiple canonical definitions. I understand […]

  • GraphQL in Flutter

    0 So im trying to implement graphql in flutter, using bloc too. I think i already did all the necessary part, but when i try to hit the graphql, it return response like this HttpLinkParserException (ResponseFormatException(originalException: FormatException: Unexpected character (at character 1) here is my graphql function – void _onLoginButtonPressed( LoginButtonPressed event, Emitter<LoginState> emit) async […]

  • Apollo-client returns “400 (Bad Request) Error” on sending mutation to server

    13 I am currently using the vue-apollo package for Apollo client with VueJs stack with django and graphene-python for my GraphQl API. I have a simple setup with vue-apollo below: import Vue from ‘vue’ import { ApolloClient } from ‘apollo-client’ import { HttpLink } from ‘apollo-link-http’ import { InMemoryCache } from ‘apollo-cache-inmemory’ import VueApollo from […]

  • Property ‘x’ does not exist on type ‘y’ (Graphql Codegen)

    0 I have auto-generated the types that are used for PokemonAPI (GraphQL) and I wanted to get the type for requirements attribute to use it as a function parameter type. When I try using `PokemonSpec[‘evoChain’] it generates an error Property ‘evoChain’ does not exist on type ‘PokemonSpec’. How do i do it? export type PokemonSpec […]

  • HttpLinkParserException using GraphQL in Flutter

    0 So im trying to implement graphql in flutter, using bloc too. I think i already did all the necessary part, but when i try to hit the graphql, it return response like this HttpLinkParserException (ResponseFormatException(originalException: FormatException: Unexpected character (at character 1) here is my graphql function – void _onLoginButtonPressed( LoginButtonPressed event, Emitter<LoginState> emit) async […]

  • Adding an entity to apollo-client cache after mutation to match query variables

    0 I’m currently building a SPA with apollo-graphql and everything is working fine so far. However, I have reached a point where the apollo cache causes some issues. I have a UI which provides several filter criteria. The fields are mapped to variables in my graphql query, specifically a project ID and a timespan (start/end […]

  • ApolloServer: createAPIGatewayProxyEventV2RequestHandler — how to set up CORS?

    0 I’m splitting a project into client/server sub projects, so now I have to deal with CORS issues between the client and server running under different ports on localhost. I’m using ApolloServer 4, and can’t find any documentation for setting the Access-Control-Allow-Origin header for an AWS lambda server. This is the setup: import { ApolloServer […]

  • Student’s t-distribution CDF R base documentation

    6 In the context of the Student’s t-distribution cumulative distribution function, R Version 4.3.1’s ?dt documentation highlights the following result: However, upon attempting to verify the accuracy of this formula, an inconsistency arises, as illustrated in the following code snippet: v <- 5 t <- -1 ## Student’s t-distribution cumulative distribution function pt(q = t, […]

  • Redis-om EntityId: how to return the result of a search

    0 I use redis-om with nodejs, typescript and graphql I save a record in redis with this code let vote = await voteRepository.save({ voterID, date, certified }); the type of ‘vote’ is ‘Entity’ but I want to send back to the client an object of type Vote: type Vote { voterID: String! date: String! certified: […]

  • Resolve relationships in graphql using nexus

    0 I’m new to using nexus and graphql but I’m having a hard time getting the following to work: I am using: "@prisma/client": "^5.4.1", "apollo-server": "^3.12.1", "graphql": "^16.8.1", "nexus": "^1.3.0", "python": "^0.0.4" And this is running in a node container (node:20-alpine3.17) My data model: I defined the types and some query definitions using the nexus […]