Gadget Developers

GD

Gadget Developers

Build SAAS apps alongside thousands of other Gadget developers. Get help, and offer help to others in the community.

Join

Addition of shopifyCustomer model + full resync on store not backfilling some customerIds

We have only recently added the shopifyCustomer model to our app, and we have done a full re-sync on our development stores — however on our shopifyOrder model only a small percentage of orders have the customerId backfilled once this process has run. There doesn't seem to be any pattern as to which orders get backfilled and which don't — I thought maybe it was the 60-day order limit, but we've got orders from more than 6 months ago that have been backfilled with a customerId. url: platform.authentified.co...

About webhook filters

Hello, I want to filter out all variant/inventory related data from my products/update webhook. I was checking the Shopify documentation and I believe the way to do it would be to modify the payload (https://shopify.dev/docs/apps/build/webhooks/customize/modify_payloads). But I believe Gadget only supports filtering? (https://shopify.dev/docs/apps/build/webhooks/customize/filters)...

metafields vs gadget record

I want to optimize my request time and store settings for the app in gadget record, however i was wondering if it would be more efficient to store it in shopify metafields. My app is read intensive and the gadget record probably gets called a few thousand times so i was just wondering if it would be more efficient to store these settings in shopify api and save up on request time

Checking current attempt on background actions

Hi guys, is it possible to check if the current background action is retrying? More specifically, I want some code to run only if the action fails and there's no retries left.

Waiting Queues taking longer 15mins+

Hello, we've noticed that we have a lot of waiting queues in production. Could you help us understand what's happening on the background with this? App: polydata...
No description

Creating custom folders in models

Is it fine to create a custom folder in a shopify model? For example I might want to create a utilities folder isolated to that model
No description

Upserting updatedAt

Does the upsert action not update the updatedAt field? 🤔

Building UI & App Proxy Configuration in Gadget

Hi Team, Does Gadget provide a separate endpoint for proxies that can be used to render a different UI than the usual app interface? Specifically, can I use a proxy to serve a distinct customer portal UI while keeping the main app interface separate? If so, how can I obtain and configure such an endpoint in Gadget to ensure proper authentication and UI rendering for the customer portal?...

Create additional shopify models after initial setup

I cant find any option to create shopify object models but I can create my own custom models after app creation

Order/create webhook

The order/create payload contains only the product information not the order or the customer info why?

Call gadget action from an extension

Hey, I want to trigger a GraphQL mutation when a customer clicks a button inside an app block. I know I can write backend code in the global actions folder, but I need to understand how to trigger it via the Shopify extension....

Error when trying to get the result of a background task

I am trying to use background tasks to deal with rate limiting from an external API. I have this function ```js export async function discordRequest(endpoint, options) { const task = await api.enqueue( api.discordRequest,...

problem with order/create webhook

alright so my app functionality is based on when an order is created, the entire logic is in the run function of the orders/create action, however, if I add an exception to not run that code on orders/update or orders/risk_assessment_change webhook then it misses the majority of the orders so I cant exempt it from that either. So the problem usually arises with new customers when they update an order that was placed before the app was installed, it runs the same action on that order although that order is old and not actually being created but rather just updated. This is kinda confusing you can help me with it. Another problem which i have talked about previously as well is the missing data in the record object. The workaround I found for this was to just fetch order id drom the record and call the shopify api for the rest but i suspect that has really sky rocketed my request time usage, do you think that might be true?...

Adding type definition to Actions.

I have a .js project which in which i am transforming some files to .ts. I get many .ts warnings and would like to know how to add proper type definition. I tried :ActionRun but it doesnt work...
No description

Help with data models

Hello im new to this and im having a hard time fetching data from a data model and displaying it onto a theme app extension any idea where to start

Gadget websocket support ?

Does gadget support websockets ? Couldn’t find it in the docs

Using pub/sub with Gadget

I want to subscribe to the order webhook using google pubsub to handle the data since Gadget would be to expensive due to request time for me. In the Shopify docs is described to add the permission as well as the webhook to the toml file. But the existing permissions from gadget are not in that file so I need to dublicate them every time I do changes there. Is there an easier way / does the toml configuration change anything with the current Gadget Webhooks / other parts of Gadget? Thanks 🙂...

Filter and sorting based off models relationship field?

I am essentially trying to build a table that has a combination of data from orders and orderlines. My issue however is filtering and sorting on fields from the orderline and fields from the order. Using the query below, as far as I'm aware I can only filter and sort on the top level orderLineItem fields and I cannot filter or sort on order fields? I've pulled these out into two separate queries, so I could filter and sort each and map the data back together again. However then I fall into pagination issues....

Is there a way to know in gadget if a product/variant is a bundle or not?

Need to filter out certain actions based on if its a bundle or not