Questions

  • GraphQL validation error

    0 I am trying out relay-treasure hunt tutorial but getting the following error when I run npm start. I did update my schema by running npm run update-schema. Uncaught Error: GraphQL validation error “Cannot query field “game” on type “Query”.“ in file `/home/tharaka/My Projects/relay-treasurehunt/js/routes/AppHomeRoute.js`. Try updating your GraphQL schema if an argument/field/type was recently added. […]

  • Can I use nested properties as variables while using useQuery from Apollo and GraphQL?

    0 I created a MERN application using Graphql, and I’m trying to fetch using properties that are nested inside my data as variables. As an example, I have client and project models. Is it possible to fetch all the projects for a specific client by passing the client ID when fetching the projects with useQuery. […]

  • Why does C++ have no std::invocable_r concept?

    11 C++20 added concepts, and the standard library includes quite a few of them. One concept in particular caught my eye: std::invocable which validates that a functor can be invoked with a set of arguments. std::invocable is just syntactic sugar for std::is_invocable. However, the standard library further defines std::is_invocable_r which tests whether a functor can […]

  • How does GraphQl handle conflicting operation names?

    0 Working on a large codebase, I came across 2 exposed graphql mutations with the same name. To my understanding, these should give an error when generating the graphql schema, yet the site is perfectly functional. Both these mutations have the same method arguments as well. I want to know what are the rules on […]

  • GraphQL Server unreachable

    0 I am trying to create serverless azure function with graphql in visualstudio code. I am following the below tutorial Build Serverless API with GraphQL and Azure— Part I After starting the application, i see the error attached in the browser. unable to execute query because of the error. Tried with the embed sandbox on […]

  • Curl graphql query to insert with html character

    0 I need insert in Shopify from CURL with graphql a html traslation but not accept "<" character I try with < < but nothing.. {"query": "mutation CreateTranslation($id: ID!, $translations: [TranslationInput!]!) { translationsRegister(resourceId: $id, translations: $translations) { userErrors {message field} translations {key value locale} } }","variables": {"id": "gid://shopify/Product/myid","translations": [{"key": "body_html","value": "<p>La Camicia da Uomo in […]

  • Trying to run Login graphql query(Magento 2) in jmeter with graphql http request but request is not being sent properly and results in 500

    0 Below is the query I am trying to run to generate customer token. Can somebody help me out? Query runs successfully in Postman. mutation Login($email: String!, $password: String!) { generateCustomerToken(email: $email, password: $password) { token customer { …CustomerFragment } } } fragment CustomerFragment on Customer { email firstname lastname mobilenumber user_source pushnotification group_id is_subscribed […]

  • How to check to which service is being queried by Apollo Gateway

    0 I have two services in my Apollo Gateway configuration. I can only connect to one of them with a VPN. I would like to check this using the X-Forwarded-For header. public makeGateway = (): ApolloGateway => { const gateway = new ApolloGateway({ debug: this.config.DEBUG, supergraphSdl: new IntrospectAndCompose({ subgraphs: this.config.services, }), buildService: this.buildService, serviceHealthCheck: true, […]

  • How can I getting only the number id of the product in shopify using graphql and laravel app

    0 This is my routes Route::get(‘/carts/{numericProductID}’, ‘AppHttpControllersShopifyController@showProductDetails’) ->name(‘showProductDetails’); This is the link to direct to other page to show/fetch the details of the selected product <a href="{{ route(‘showProductDetails’, [‘numericProductID’ => $product[‘node’][‘id’]]) }}">View Details</a> php html laravel graphql shopify Share Follow asked 33 mins ago Ruel A AlmoniaRuel A Almonia 111 bronze badge 1 What is […]

  • How to specify auto-generated types by Prisma for the code-first Graphql resolver on NestJS?

    0 Suppose I want to execute a many-to-many mutation like below, which is cited from prisma.io: const createCategory = await prisma.post.create({ data: { title: ‘How to be Bob’, categories: { create: [ { assignedBy: ‘Bob’, assignedAt: new Date(), category: { create: { name: ‘New category’, }, }, }, ], }, }, }) To implement Graphql […]