Tag: shopify
-
Create a draft order via rest API or graphql in shopify
0 I am developing an app for Shopify and I am new to remix. I have used shopify-app-remix. I want to create a draft order after the app is installed. I don’t know how to make an API call after the app is authenticated. I found afterAuth in the shopify.server.js file. I have tried to…
-
How to implement Shopify’s new ProductFilter on the latest storefront API
0 I have been trying to follow this guide with examples step-by-step, but when I run the following query, Shopify returns every product from the collection instead of the filtered products. I have confirmed that I have the variant options on my products, it just appears to not apply the logic. Appreciate your time 🙏…
-
How to get file image url in graphql for a Metaobject
0 I am using StoreFront API call to get Metaobject entries. One of the fields is of a type file (image). When I call the GRAPHQL with below call. I am getting all the fields but getting image as gid reference. I wan actual cdn url which I am not able to find anywhere in…
-
Updating a single product in shopify app using Laravel and Graph QL
0 Im using Laravel to create a Shopify app. I have a mutation to create a product in shopify which works fine… private const CREATE_PRODUCTS_MUTATION = <<<‘QUERY’ mutation populateProduct($input: ProductInput!) { productCreate(input: $input) { product { id } } } QUERY; $response = $graph->query( [ "query" => self::CREATE_PRODUCTS_MUTATION, "variables" => [ "input" => [ "title"…
-
Shopify app keeps reloading after implementing GraphQL API call?
0 I’m learning full stack dev by making a Shopify app, the stack is Javascript, React, Remix, and uses the GraphQL API. I’m consistently running into an issue with calling into the orders api call, the previously working web app will begin to repeatedly reload & then will fail with this error: This app can’t…
-
Shopify GraphQL using fetch API, returns empty json, no errors
1 Trying to just fetch the name of my store in a React component using the Fetch API and GraphQL endpoint of Shopify. I created a Shopify store, gave permissions to the Storefront API and crafted this in my componentDidMount() section of my react component. let query = ‘{ shop { name } }’; console.log(JSON.stringify(query));…
-
Discount Codes By A Customer ID Or Email using Graphql
0 I am trying to select discount codes assigned to a logged-in user using admin graphql API. I am able to select all discount codes but I am not able to filter them by customer ID or customer email address. Here is my GQL. Can you guide me on how can limit the results to…
-
Shopify GraphQL: How to add multiple variants to a product?
1 I’m following the GraphQL documentation for `productCreate but I can’t figure out how to add multiple variants when creating a product. I’m using the following mutation: mutation productCreate($input: ProductInput!) { productCreate(input: $input) { userErrors { field message } shop { id } product { title handle variants { edges { node { title }…
-
Remix shopify app , in action can i do a fetch api request and get the response and from that response , i create a server side graphql mutation
0 So i’m new to shopify dev app , and i just installed a project in which i’m learning how to use the Remix framework . let me explain to you what i’m trying to achieve : 1 – i’m creating a shopify app , in which when a person has a shopify store and…
-
GraphQL products query Access Denied
3 I’m a little stuck with one GraphQL query. { collectionByHandle(handle:”price”) { products(first: 16, sortKey:PRICE, query:”title:Bracelet”){ edges { cursor node { title } } } } } The error comes from the query parameter which is not supported on Custom collection, but it is on a Smart one. query: String This field is only used…