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

Bug: Auto-generated Upsert API endpoint to 'user' model is bugged with wrong underlying graphQL.

I'm trying to create an upsert call to the gadget API for the default 'user' object in the Web app template. The API generated docs for an Upsert call, are in the first image. But when you actually try to run that in the playground (or make the call in your files) you get errors saying neither email not password have been provided (even though they have). As shown in image 2. No idea what is going on here at all? Is the underlying graphql mutation broken?...
No description

How to reliably get revenue / MRR from a store?

Our next app will have billing based on the revenue / MRR of the store. The only thing we are not sure about, is how to make sure, we get correct numbers. For most apps merchants would like their MRR to appear as low as possible, to have lower app costs. In our circumstance, merchants also unlock specific features in the app, the higher their MRR is. We need to make sure, they cannot inflate their numbers with draft orders and manual payments for orders that didn't really happen. ...

Hello! compliance webhook help

hello anyone know what they the webhook urls are meant to look like for these compliance endpoints so that it works or any other additional setup i need to do
No description

Special Admin UI accessible only to "App Creator'"?

What is the canonical way that Apps using Gadget implement Admin UI interfaces accessible only to creators of the app? Think internal analytics or admin tasks that directly manipulate the database. I can think of 2 ways: 1. Create a private application using npm/express/whatever accessible only to your organizatin's github repo that interfaces with the Gadget backend....

Access to fetch has been blocked by CORS policy

I have read the documentation and checked the messages here on CORS but I am still missing something. Please help! I am trying to fetch product and store information from a Shopify storefront. I was able to inject a script there (confirmed and the function is available) but when trying to send the data from the storefront back to Gadget's backend I get the error:...

how to get user info in web app routes

i fork this app,https://app.gadget.dev/auth/fork?domain=stripe-template.gadget.app i wanna get user info like in shopify app : const info= connections.shopify.current please tell me how to do ,tks...

shopify connections

Hey can i get shopify connection in an unauthenticated role inside actions?...

Logged objects are going into the log message field

In some cases the results object that I'm logging is getting dropped in the message field which is pretty messy. I wonder if objects over a certain size get dropped in there as a log indexing optimization or something? Notice how in one screenshot you can see the results object is where it should be and in the other it's splattered all over the log message 😰...
No description

Gadget app url in app proxy not working

Hey I am using gadget url as app proxy but it is not displaying any data however if I directly visit the link it opens. Can anybody tell me which url to use here?...
No description

Bulk update internal

Am I missing something or is bulkUpdate not available on the internal API? I've worked around this for now by doing it on a singular level in development but I need to run a bulk in production to update a bunch of new fields.

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?...