Tag: graphql
-
graphql variable types
0 I use https://github.com/shurcooL/graphql for graphql queries and I need to make the following mutation: mutation createPromotion($input: CreatePromotionInput) { createPromotion(input: $input) } with the following graphql variables: { "input": { "channel": "my_channel", "offerType": "my_offer_type", } } In my code it looks like this: type CreatePromotion struct { CreatePromotion graphql.String } func (g *Gate) CreatePromotion(ctx context.Context)…
-
golang graphql variable types
-1 in my golang project I use https://github.com/shurcooL/graphql for graphql queries and I need to make the following mutation: mutation createPromotion($input: CreatePromotionInput) { createPromotion(input: $input) } with the following graphql variables: { "input": { "channel": "my_channel", "offerType": "my_offer_type", } } In my code it looks like this: type CreatePromotion struct { CreatePromotion graphql.String } func…
-
Combining Fields from user input content fragment in grapgql
0 There are 2 tag fields in my content fragment model lets assume the names as tag1 and tag2. User creates a content fragment and selects the desired tag values. But I want to take these 2 values and combine them with an underscore. is there any command that permits this in graphql or is…
-
GraphQL Reduct Response
0 I have a response from GraphQL which is similar to: "data": { "x": { "y":{ "nodes": [ { "id": 123 }, { "id": 123 }, { "id": 456 } ] } } } Is there a way to reduce this so that no duplicate IDs come, using the graphQL query. graphql Share Follow asked…
-
Promise.all is only executing 1 out of 3 promises I pass to it
0 I have an async function, in which I take some arguments. Based on what is passed as argument, I call another function. You can consider the structure to be something like this. async function createTaskReminder(val) { switch (val) { case 1: await call1(); case 2: await call2(); case 3: await call3(); } I call…
-
Authenticate Apollo Client to AWS AppSync with Cognito User Pools
5 I am trying to connect to my AWS AppSync API using the plain Apollo Client but I am not sure how to structure the authentication header correctly. So far I have followed the header authentication documentation here: https://www.apollographql.com/docs/react/recipes/authentication.html And have this code, which I adapted to include the token call to the Amplify authentication…
-
Data Engineer with GraphQL – Amazech Solutions – Remote
Amazech Solutions Remote Depends on Experience Accepts corp to corp applications, Contract: Independent, W2 Skills graphql data engineer Job Description Amazech Solutions is one of the fastest growing IT Solutions and Staffing companies in Dallas Fort Worth Metroplex. Established in 2007 at Frisco TX, we serve clients in DFW and across the nation. We are…
-
How do you create a template with replaceable variables for JS/React?
0 Context: I want to create a GraphQL query template with different variables that I can replace with key/values from another dictionary I want to give JS/React this template and dictionary and be able to replace the variables in the template with the corresponding values in the dictionary How would you recommend I do this?…
-
module.export = {} with Vite React
0 I created a react App with Vite, and I want to use Apollo extension to get Intellisense when building GraphQL queries. According to the extension docs, I created an apollo.config.js file at the root with this code : module.exports = { client: { service: { name: "my-graphql-app", url: "https://localhost:4000/graphql", }, }, }; But since…
-
Working Shopify GraphQL API for automating photo uploads, but I keep running into a string formatting error
0 I’ve tried adjusting the formatting to work but I keep running into the same error regardless of the changes. I’m new to GraphQL and Shopify so I’m a little stumped. The goal I’m trying to achieve is automating uploading some where around 2000 photos to a shopify store, and doing so based on a…