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

All shopify and bigcommerce app in one App?

I just wanted to know if there's a way to make it possible that a shopify and bigcommerce app be in one gadget app? Is there a way to do this or selecting the web app type will be the best way? We want it to be within gadget dev platform. Thank you!
No description

GGT_DATABASE_OPERATION_TIMEOUT: One operation in the backend database took too long to execute

Hi all, I'm seeing a lot of errors like this on my app. What could be the cause? Example trace id: 8966ac30681066556164bd007c3f98ea...

Api access scope missing in gadget

read_marketplace_orders access scope missing in gadget however i need to to call a mutation. How can I enable this?

Best way to model a relationship in gadget?

I have 2 fields on an Order model: StoneChoice1 and StoneChoice2, which each need to be linked to a Stone model. The same stone record, could potentially be used for both choices (though generally they would differ), as well as on multiple Orders. What would be the best form to model this relationship in gadget? My intuitive feel would be two one-to-many relationships as one Stone can belong to many Orders....

The customer on Shopify isn't included on shopifyCustomer record. How can I fix this?

We got this warning message below: GGT_RECORD_NOT_FOUND: Can’t run action update since there’s no shopifyCustomer record with id=8194478080219 NotFoundError: GGT_RECORD_NOT_FOUND: Can’t run action update since there’s no shopifyCustomer record with id=8194478080219 We trigger shopifyCustomer.update action after receiving orders/update webhook....

onFailure function of model actions

Just like the onSuccess function, I'd like to run some code for onFailure when there is a error thrown in the run function. I don't see an onFailure here: https://gadget.dev/blog/building-with-the-gadget-action-framework Does Gadget have support for onFailure functions for model actions?...

Customer auth token

Does gadget provides some helpers or functionality to let the user perform some actions, by default they would be unauthenticated as they are not in the shopify store. Can we can send them a url with token to fetch and view database info and perform function after getting authenticated by the token we send via the email?...

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