Questions

  • Importing “@authenticated” directive using nestjs, apollo, and code-first approach

    0 I am using NestJS server with microservices and Apollo Router. I want to add "@authenticated" directive to my resolvers so I can omit authentication on requests to routes that do not require it. When using @Directive("@authenticated"), I get an error saying that I either have to use "@federation__authenticated" (which throws error saying it doesn’t […]

  • GraphQLParser nesting limitation

    0 I’m using Facebook’s C++ library GraphQLParser to parse GraphQL queries. If a pass the library a query with an extremely large number of nested selection sets – it crashes due to stack overflow. Query for example: query X { name { name { name { … } Is there a way to configure the […]

  • Can one forward declare a function taking a vector of incomplete type with a default value?

    6 Below code snippet demonstrates some real issue I faced recently in my program: #include<vector> class A; void f( const std::vector<A> & = {} ); There is an incomplete class A, and a function declaration taking a vector of A‘s with empty default value. And the function is not even called anywhere. It works fine […]

  • Spring cloud gateway: Websockets on the same URL as HTTP(S)

    1 I’m using Spring Cloud Gateway with a routing configuration like this: spring: cloud: gateway: routes: – id: http uri: https://kubernetes-ingres-controller In other words, I’m sending all paths onwards to somewhere else, which happens to be a K8s ingress controller. Spring adds some headers and handles the translation of session cookies into bearer tokens. I’m […]

  • Testing graphql query in react error: TypeError: (0 , _client.gql) is not a function

    0 I have this graphql query: export const LOAD_PLAYERS = gql` query GetPlayers { players { id firstname lastname shortname sex picture { url } country { code picture { url } } stats { rank age weight height points } } } `; I’m using it in this custom hook and it works just […]

  • UseOcelot and Hot Chocolate

    0 i have gateway with ocelot and Hot Chocolate grapqhl after my initialisation app.UseHttpsRedirection(); app.MapGet("/", () => "Ok"); app.MapGraphQL(); app.UseAuthorization(); app.MapControllers(); app.UseSwaggerForOcelotUI(options => { options.PathToSwaggerGenerator = "/swagger/docs"; options.ReConfigureUpstreamSwaggerJson = AlterUpstream.AlterUpstreamSwaggerJson; options.DefaultModelsExpandDepth(-1); }) .UseOcelot() .Wait(); app.Run(); Graphql UI stop and /graphql stop working Can you help me ? asp.net graphql ocelot Share Improve this question Follow […]

  • Gatsby ,GraphQl content mapping bug

    0 I am using Gatsby, GraphQl, and contentful. In my project i am trying to connect specific banner section to specific page (like home page should have banner of home and similarly for about us page and other pages) and i am writing my code for banner in banner.jsx . so the approach is every […]

  • using graphql with redis used as a source rather than a database

    0 hi im looking to implement a service that uses Graphql with a Redis as the source? is that a pattern thats used often? redis graphql Share Follow asked 18 mins ago user1555190user1555190 2,86588 gold badges4949 silver badges8080 bronze badges Load 7 more related questions Show fewer related questions 0 Sorted by: Reset to default […]

  • Expected 1-2 arguments, but got 3. react tanstack query options

    0 Using graphql codegen.yml file: `# 1. Schema (graphql schema location) schema: "src/graphql/schema.graphql" documents: "src/graphql/*.graphql" generates: src/graphql/generated.ts: plugins: – typescript – typescript-operations – typescript-react-query – fragment-matcher config: dedupeFragments: true fetcher: # Function to run func: "./auth-fetcher#fetchData" isReactHook: false` My auth-fetcher file using react query fetcher from https://the-guild.dev/graphql/codegen/plugins/typescript/typescript-react-query `export const fetchData = <TData, TVariables>( query: string, […]

  • GraphQL Relay mutation with spread fragment selection does not update state after commit

    0 I have this todos-list component import { Suspense } from "react"; import { graphql, useFragment, useLazyLoadQuery } from "react-relay"; import { todosQuery } from "./__generated__/todosQuery.graphql"; import { todos_todos$key } from "./__generated__/todos_todos.graphql"; export default function Todos() { const data = useLazyLoadQuery<todosQuery>( graphql` query todosQuery { todos { …todos_todos } } `, {} ); return ( […]