Skip to content

Next#600

Draft
hez wants to merge 11 commits intomainfrom
next
Draft

Next#600
hez wants to merge 11 commits intomainfrom
next

Conversation

@hez
Copy link
Copy Markdown
Contributor

@hez hez commented Apr 22, 2025

This is the next big ver of shopify api

  • fix to auth plug
  • new webhooks workflow, new plug and controller!

hez and others added 11 commits October 22, 2025 08:22
- moved to using a body reader for validation
- ensure validation moved in to its own plug
- all the logic for settings assigns (shop, topic, etc) moved in to its own plug
- setup of the route for the webhooks should now happen in the router.ex
- handling and business logic for webhooks should now happen in a controller
This allows us to use the shopify app toml for creating the App struct
This uses the now commonly accepted pattern of passing down a scope to requests. The protocol defines how the data from the scope can be accessed. AuthToken has an implementation of the new protocol for backwards compatability reasons.
This greatly simplifies the most common use case, 1 shopify app to one phx app.
This moves away from the old way of doing graphql requests and instead builds up a GraphQLQuery that is executed.
The resulting GraphQLResponse has a significant amount mor information in it.
graphqlquery -> graphql_request to properly match the telemetry names
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants