Questions

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

  • Prisma Appsync generator not working when run the npm run deploy command

    0 I’m using local mode successfully, but trying to deploy, I can’t complete the command npm run deploy. cdk synth never complete the step: RUN npm install –global [email protected] Step by step I’m test with nodejs versions 16 & 18     "aws-cdk": "2.99.1",     "aws-cdk-lib": "2.99.1" I’m testing default tutorial from https://prisma-appsync.vercel.app/quick-start/getting-started.html Anyone can […]

  • Complex type in Netflix dgs entityfetcher

    0 I have defined Subgraphs to fetch data from multiple sources type MyResult{ id: ID innerResults: [InnerResult] @external otherResults: [OtherResult] @requires(fields: "innerResults") } DgsEntityFetcher looks like below @DgsEntityFetcher(name = DgsConstants.MYRESULT.TYPE_NAME) public DataFetcherResult<MyResult> getResults(Map<String, Object> values) { values.forEach((k,val) -> log.warn("key {} value{}",k,val)); return DataFetcherResult.<MyResult>newResult() .data(PlacedDeviceResult.newBuilder().Id((String)values.get("id")).innerResults((List<InnerResult>) values.get("innerResults")).build()) .build(); } But this is not working giving exception java.util.LinkedHashMap […]

  • Whitehat SEO for letslearngraphql.com

    Hi I have just verified your SEO on letslearngraphql.com for the ranking keywords and saw that your website could use a boost. We will enhance your ranks organically and safely, using only state of the art AI and whitehat methods, while providing monthly reports and outstanding support. More info: Unbeatable SEO Regards Mike Fitzgerald Digital […]