Skip to content
Back to blog
  • Shopify
  • Engineering

Building Custom Shopify Apps with the Admin GraphQL API

A practical walkthrough of building embedded Shopify apps with Remix, Polaris and the Admin GraphQL API.

MMuhammad Muneeb1 min read

Custom Shopify apps are one of the highest-leverage things you can build for a merchant. Here is how I approach them.

Talk to the Admin API in GraphQL

The Admin GraphQL API lets you fetch exactly the fields you need in one round trip — a big win over the REST API for embedded apps where latency is visible to the merchant.

queries/products.graphql
query Products($first: Int!) {
  products(first: $first) {
    edges {
      node {
        id
        title
        totalInventory
      }
    }
  }
}

Polaris for a native feel

Building the UI with Polaris means your app looks and behaves like part of the Shopify admin — merchants trust it immediately and you write far less CSS.

Ship the smallest app that solves a real merchant problem, then iterate from real usage.

Related posts

DevOps1 min read

Self-Hosting Next.js on a VPS with PM2 and Nginx

You don’t need a platform to run Next.js well. Here’s how I deploy it on a plain VPS — PM2 for the process, Nginx out front, and a one-command deploy.

Read article
Engineering1 min read

Background Jobs in Node.js with BullMQ and Redis

Slow work doesn’t belong in a request. Offload it to a queue. Here’s how I structure reliable background jobs in Node.js with BullMQ and Redis.

Read article