Questions

  • Prisma throws an error “TypeError: cannot read property findmany of undefined”

    5 I wanted to make a chat app to practice working with graphql and node, for database I used prisma. I was doing everything like in this tutorial. https://www.howtographql.com/graphql-js/0-introduction/ I just changed variable names. so I have this code const { PrismaClient } = require(‘@prisma/client’) const prisma = new PrismaClient() const resolvers = { Query: […]

  • Graphql Codegen adds an extra property for my custom scalars

    0 I just recently added the typescript-resolvers plugin to my codegen config, and while it does what I need, it seems to also add my custom scalars to the ResolversTypes. The issue is that it seems to add an extra [‘output’] property to these scalars. For example; I end up getting an error: Property ‘output’ […]

  • How to make sure my graphql subscription api is working?

    0 This is my subscription resolver in golang: func (r *subscriptionResolver) CreateChatWithBot(ctx context.Context, req model.CreateChatWithBotRequest) (<-chan *model.CreateChatWithBotResults, error) { ch := make(chan *model.CreateChatWithBotResults) testString := []string{"This", "part", "is", "under", "construction", "…", " Be", "patient", "please!"} go func() { defer close(ch) for _, v := range testString { select { case <-ctx.Done(): return case ch <- […]

  • Domain Authority of your letslearngraphql.com

    Hi there, I have reviewed your domain in MOZ and have observed that you may benefit from an increase in authority. Our solution guarantees you a high-quality domain authority score within a period of three months. This will increase your organic visibility and strengthen your website authority, thus making it stronger against Google updates. Check […]

  • Error: Gatsby query was left in the compiled code while testing with vitest

    0 I am working on a Gatsby website and while testing a component with a graphql query using vitest I keep getting this error : Error: It appears like Gatsby is misconfigured. Gatsby related graphql calls are supposed to only be evaluated at compile time, and then compiled away. Unfortunately, something went wrong and the […]

  • Apollo Android Client – Cannot access generated classes on classpath

    4 I’ve generated the Apollo classes successfully and can see them in the build directory, however they’re not available on the classpath. Strangely the Enum that is generated is available but the classes themselves aren’t. Running the sample project provided on Apollo’s Github does work but I cant see the difference between the configurations. mcve […]

  • Best practices for GraphQL in general

    0 What are best practices for designing and implementing GraphQL APIs, considering aspects such as schema design, query optimization, error handling, and security? How certain practices contribute to improved performance, maintainability, and overall efficiency in GraphQL development. For example, how you would structure your schema to handle nested queries efficiently. Also what are security concerns […]

  • prevent a trait function from being implemented by other struct

    9 I just build a trait Bar with 2 functions (alpha() with implementation and beta() with only interfaces), and I hope the struct who implement Bar implements only beta(), and never implement their own alpha(). Is there any way to prevent another struct from implementing their own alpha()? trait Bar { fn alpha(&self) { println!("you […]

  • AWS CDK newly added data delay issue to display

    0 I am facing data delay issue in my application. When I add new data it take to much time to display on live site but working fine when I attach live database with my local code. CDK usually take 5 to 20 mints to respond but in my case it taking hours and some […]

  • How to use graphql with remix.run

    0 I have an endpoint https://localhost:1337/graphql where i query a lot of things from strapi but i am trying to use remix.run (tsx) as. my framework, there are no latest tutorials as to how to integrate the graphql endpoint to the remix loaders so that i can query directly from the graphql endpoint. export async […]