Tag: graphql
-
Shopify GraphQL: How to add variants using Python and GraphQL
0 I’ve been trying to create product with variants using Python and GQL, but lacking something and dosen’t work as I want. it says "Field ‘optionValues’ doesn’t exist on type ‘ProductOption’" but I reffer to a official document and copy it https://shopify.dev/docs/api/admin-graphql/2023-10/mutations/productcreate#examples-Create_a_product_with_options_and_option_values import requests import json # Shopify API credentials shop_url = "ShopURL" access_token =…
-
How to add description comments on schema.graphql on AWS Amplify CLI At time of amplify Push
0 I need to add description of types comments on my local project with amplify, after at time of push i need upload the comments on the schema too, for generate the JSON of Introspection schema with the comments, I already make this with AWS AppSync manually, but I need make that on amplify push……
-
Shopify API (using Python): File upload failed due to “Processing Error.” Why?
1 I am struggling to figure out why I’m not able to successfully upload images to the Files section of my Shopify store. I followed this code here, except mine is a Python version of this: https://gist.github.com/celsowhite/2e890966620bc781829b5be442bea159 import requests import os # Set up Shopify API credentials shopify_store = ‘url-goes-here.myshopify.com’ // the actual URL is…
-
import error ‘force_text’ from ‘django.utils.encoding’
49 I’m implementing a graphql solution using python, graphene and django and I’m getting the following import error: Result: Failure Exception: ImportError: cannot import name ‘force_text’ from ‘django.utils.encoding’ "/home/site/wwwroot/.python_packages/lib/site-packages/graphene_django/utils/utils.py", line 6, in <module> from django.utils.encoding import force_text I’m not sure about the versions and whether I need to import an additional module. My requirements.txt is…
-
GraphQL (SendQueryAsync) deadlocked when executing from Maui ViewModel initializer
0 GraphQL query runs just fine when I run it in a C# console app. Using the exact same GraphQL Client, similar code and properties it hangs when I try to run it from a ViewModel initializer in Maui. An exception is thrown: "System.Reflection.TargetInvocationException: ‘Exception has been thrown by the target of an invocation.’" If…
-
Helidon: GraphQL with Stream and Defer annotation
0 I am working on a graphql API using Helidon MP and looking to confirm that directives @ stream and @defer supportable? GraphQL documentation link for reference: https://graphql.org/blog/2020-12-08-improving-latency-with-defer-and-stream-directives/ we tried GraphQL @stream and @defer annotation but its not working. We could make it work in Apollo server. graphql stream java-stream graphql-java helidon Share Follow asked…
-
With Apollo Graphql, is it the same having a field as null and not sending it?
0 I am implementing a React Typescript app that communicates to a Kotlin backend using GraphQL (Apollo on the Frontend). My mutation is : updateProfile(input: UpdateProfileInput) input UpdateProfileInput { firstName: String lastName: String email: String } I am supposed to send as an input only the fields that have been changed. So I should not…
-
Shopify Processing Error On File Upload Through JS/GraphQL
0 I am implementing a simple solution that allows the user to select a file (any type of image). Once selected, the user clicks on "Upload Image," and the API call is triggered. I am receiving a status 200 in response, but when I check the Shopify Files directory in the admin panel, it shows…
-
Download Gitlab’s graphql schema
2 I’m trying to get hold of gitlab_schema.graphql, i.e. the schema for Gitlab’s graphql API. Can’t find it anywhere, does anyone have any pointers? graphql gitlab Share Follow asked Sep 16, 2021 at 16:58 Fredrik JanssonFredrik Jansson 3,78433 gold badges3030 silver badges3333 bronze badges 5 Answers 5 Sorted by: Reset to default Highest score (default)…