Questions

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

  • Allowing unrequired lists in graphql

    -1 type Participants @entity(immutable: true) { id: String! games: [Games] # array of games they are a part of } this returns the error Participants: – Field ‘games’: Field has type [Games] but must have type [Games!] Reason: Lists with null elements are not supported. see in my contract when a participant in initialized he […]

  • Shopify: Register products with HTML description using GraphQL

    0 I’m new to shopify GraphQL and trying to register product through GraphQL and Python. I write a code as below but it returns error. Products with only text can be registerd but product with HTML not registerd. ■Using GCP,Theme:Debut import requests import json # Shopify API credentials shop_url = "ShopURL" access_token = "ACCESS TOKEN" […]

  • GCC removes a bounds check in the right operand of &&, but not in the left operand, why?

    18 I have the following C/C++ code snippet: #define ARRAY_LENGTH 666 int g_sum = 0; extern int *g_ptrArray[ ARRAY_LENGTH ]; void test() { unsigned int idx = 0; // either enable or disable the check "idx < ARRAY_LENGTH" in the while loop while( g_ptrArray[ idx ] != nullptr /* && idx < ARRAY_LENGTH */ ) […]

  • Improve local visibility for letslearngraphql.com

    If you are looking to rank your local business on Google Maps in a specific area, this service is for you. Google Map Stacking is a highly effective technique for ranking your GMB within a specific mile radius. More info: Google Maps Pointers Thanks and Regards Mike Jerome PS: Want a comprehensive local plan that […]

  • How to Integrate Stripe with Next.js, Typescript, WooCommerce, and GraphQL for a Headless E-Commerce Application?

    -1 I’m currently building a headless e-commerce application using Next.js, TypeScript, WooCommerce, GraphQL, and Stripe. I want to implement Stripe for the checkout process, but I’m having trouble finding relevant documentation or tutorials that cover the integration of all these technologies together. Technologies used: Next.js TypeScript WooCommerce GraphQL Stripe I’ve successfully set up the Next.js […]

  • Submission error! response.header is not a function in nest-fastify graphql

    0 I need set header autorization client. But have error in my Mutation "Submission error! response.header is not a function". my main.ts async function bootstrap() { const app = await NestFactory.create<NestFastifyApplication>( AppModule, new FastifyAdapter(), ); await app.enableCors({ origin: true, methods: ‘GET,HEAD,PUT,PATCH,POST,DELETE,OPTIONS’, credentials: true, }); await app.useGlobalPipes(new ValidationPipe({ stopAtFirstError: true })); await app.register(fastifyCookie, { secret: ‘secret’, […]