Questions

  • GraphQL Apollo Server Introspection error

    0 I’ve been getting this error when I run npx diagnose-endpoint for my apollo client. **Diagnosing https://localhost:3000/api/graphql ⚠️ Introspection query could not parse "POST body missing, invalid Content-Type, or JSON object has no keys." As valid json. Here is the error: SyntaxError: Unexpected token "P", "POST body "… is not valid JSON ** I’m setting […]

  • How to log HTTP requests made by Quarkus GraphQL Client?

    0 I’m running into serious problems trying to get Quarkus to show the HTTP requests being made by the typesafe GraphQL client. The project contains an interface GraphQL client definition com.example.MyApi and I have tried the following configurations in application.properties without success: quarkus.log.category."io.smallrye.graphql".level=FINEST quarkus.log.category."io.vertx".min-level=TRACE quarkus.log.category."com.example.MyApi".level=FINEST When that failed, I downloaded Requestly and subsequently mitmproxy in […]

  • How to respond with extensions using graphql-java?

    7 My responses from GraphQL have to follow a particular format of { data:{} errors:[{}] extensions:{} } However, I am uncertain how to respond with extensions from my methods. I am using graphql-spring-boot which pulls in graphql-java, graphql-java-tools, and graphql-java-servlet. I understand that my results from a query/mutation method will be wrapped in the data […]

  • Is it undefined behaviour to use pointer after allocated memory?

    10 I have the following code: uint8_t buffer[16]; uint8_t data[16]; uint8_t buffer_length = 16; uint8_t data_length = 0; memcpy(buffer + buffer_length, data, data_length); memcpy should be a no-op, because data_length is zero. However buffer + buffer_length points just outside of the allocated memory. I wonder if it could trigger some kind of undefined behaviour? Should […]

  • How can I use django-filter’s DateTimeFromToRangeFilter with Graphene?

    0 I’m attempting to use an instance of django-filter’s DateTimeFromToRangeFilter in conjunction with a custom FilterSet. However, this does not work when I attempt to do the following: class CustomFilterSet(FilterSet): modified = django_filters.IsoDateTimeFromToRangeFilter() class Meta: fields = "__all__" model = Custom This does not result in additional fields or annotations being created, like I’d expect […]

  • How to use stored procedure in GraphQL using HotChocolate

    0 I am currently working on a legacy application which is built on the .NET framework and uses a MySQL database. We are migrating the application to GraphQL and .NET Core. We need to use the existing stored procedures. Because, the useridDB-role is passed to the stored procedure to filter the data at the database […]

  • how to fetch on required attribute from database request coming from graphql

    0 query Languages { languages { code name } How can I retrieve specific columns from a database in response to a user’s request using Graph QL? MySQL query => select code, name from languages; i am new to Graph QL language and unable find any solution online graphql Share Follow asked 1 hour ago […]

  • Authenticating Graphql using cognito user pool

    0 I need help in connecting to Graphql(AWS AppSync) API using Amazon Cognito pool using Javascript/Nodejs. I am able to connect to Graphql using API key (API_KEY) as the authentication mechanism. But I need to change the Authentication mechanism to using Cognito pool (AMAZON_COGNITO_USER_POOLS). I know that we need to collect the JWT token and […]

  • WikiJs GraphQl select content type when creating a page

    0 Hello I am currently having the problem that if I try to create a page with the GraphQl Api for WikiJs that the content type is always text when I would like it to be markdown. Does someone know what I a doing wrong or what I need to change in my query. Below […]

  • nextauth getServerSession() always returns null when trying to call within GraphQL Yoga context

    0 I’m using Nextjs ^13.4 with GraphQL Yoga & Apollo/client and Prisma. I’m trying to get the current user’s session in GraphQL Pothos, by forwarding the response of getServerSession() but its always null. If I call getServerSession() within a RSC, then I can see the session details. 1. apps/web/app/api/auth/[…nextauth]/options.ts export const authOptions: AuthOptions = { […]