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

Accidentally run the ggt in the wrong repo and now its deleted the files

Not quite sure the best way to get back to what I had before I did this - any recommendations?

How can I disable chunked transfer encoding response header for a specific route?

I have a route that I need to keep compatible with an old API that depends on response-length header. I'm wondering if there's a way to do this? I've tried writing a custom hook for Fastify... it worked for really short responses... like less then 20 bytes, but longer responses always seem to fall back to chunked transfer encoding, and I'm not sure why. I've literally tried at least 30 different attempts at solving this. Any suggestions would be greatly appreciated.

Querying shop-specific data

Hi everyone, I know this has been asked before, so I apologize, but I couldn’t find a definitive answer. I was under the impression that adding the shopify-app-users action control prevents data from being shared between stores. However, does this only apply to model actions like create, update, and delete?...

DuplicateAPI identifier

Anyone knows how to fix this issue? Can't seem to deploy because of this. Not sure on what to do
No description

Tailing logs remotely

Gadget logs interface is pretty good BUT.... the tab consumes so much RAM (1.5gb+ sometimes). is there a way for me to access the logs remotely. Or maybe a quick way to integrate it with betterStack or some other tool?...

how to optionally sum multiple has many

I added a totalAmount computed field on a "groupOrder" which has many shopifyDraftOrder. ```gelly field on bulkOrder { (sum(cast(draftOrders.subtotalPrice, type: "Number")) - (customer.bulkOrderPercentDiscount ? ...

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