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

How to sync Gadget Production Deploy synced with Frontend deploy

We use Gadget for backend of a theme app extension. We deploy the front end and backend separately with 2 separate commands. This causes the issue that for a very brief period of time, the codebases are not aligned. How are other folks solving this problem successfully?...

Customizing Shopify App Installation Error Page

When a user tries to install our app in their Shopify store and encounters an unknown error, Shopify displays a generic error page (like 404) asking them to contact the developers. Is there a way to customize this error message to provide more specific guidance or support links? If so, how can we implement it?

Customer account extension

I have a custom model, that I want cusomters to only be able to view ones related to their id (record belongs to a s shopify customer), but the shop merchant/admin should be able to view all records beloning to their shop (every record also belongs to a shopifyShop). What should the tenacy look like? https://docs.gadget.dev/guides/plugins/shopify/customer-account-ui-extensions#adding-a-tenancy-filter...

How to make sure to adhere to Shopify's "Protected customer data access" policies

In the "Data protection details" when applying to get access to "Protected customer data access" Shopify asks about data retention policies and especially about storage and if data is encrypted at rest. To calculate a stores revenue, we will need to access the orders of the last 1-2 months / 30 days, which fall under protected customer data, as far as we know. Is there a way in Gadget to adhere to Shopify's standard and guarantee, that the order data is stored encrypted? Or is this done by default anyway? Shopify is not that good at defining what counts as "encrypted" in their eyes 🙂...
No description

Audit Events Admin API Activity Webhook

Hitting an error trying to set up this webhook: Error in field webhookSubscription,callbackUrl: Address uses delivery method 'http' and is not supported https://clhom.gadget.app/edit/development/files/api/actions/auditEvents.js...
No description

Pagination from an external client

I have a front end that fetches products and renders them in an external typescript web app. I don’t want to fetch all products at once, o rathe me grab the first 25, and as the user scrolls pull the next 25 etc. I couldn’t extract the next page or after from a findmany....

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