--- title: job - GraphQL Admin description: Returns a Job resource by ID. Used to check the status of internal jobs and any applicable changes. api_version: 2025-10 api_name: admin type: query api_type: graphql source_url: html: https://shopify.dev/docs/api/admin-graphql/latest/queries/job md: https://shopify.dev/docs/api/admin-graphql/latest/queries/job.md --- # job query Returns a Job resource by ID. Used to check the status of internal jobs and any applicable changes. ## Arguments * id [ID!](https://shopify.dev/docs/api/admin-graphql/latest/scalars/ID) required ID of the job to query. *** ## Possible returns * Job [Job](https://shopify.dev/docs/api/admin-graphql/latest/objects/Job) A job corresponds to some long running task that the client should poll for status. *** ## Examples * ### Get the status of a queued collectionUpdate job #### Description The following query retrieves the status of a queued collectionUpdate job. #### Query ```graphql query { job(id: "gid://shopify/Job/dc9b2604-c73b-45c6-8942-e235bac987e8") { id done } } ``` #### cURL ```bash curl -X POST \ https://your-development-store.myshopify.com/admin/api/2025-10/graphql.json \ -H 'Content-Type: application/json' \ -H 'X-Shopify-Access-Token: {access_token}' \ -d '{ "query": "query { job(id: \"gid://shopify/Job/dc9b2604-c73b-45c6-8942-e235bac987e8\") { id done } }" }' ``` #### React Router ```javascript import { authenticate } from "../shopify.server"; export const loader = async ({request}) => { const { admin } = await authenticate.admin(request); const response = await admin.graphql( `#graphql query { job(id: "gid://shopify/Job/dc9b2604-c73b-45c6-8942-e235bac987e8") { id done } }`, ); const json = await response.json(); return json.data; } ``` #### Ruby ```ruby session = ShopifyAPI::Auth::Session.new( shop: "your-development-store.myshopify.com", access_token: access_token ) client = ShopifyAPI::Clients::Graphql::Admin.new( session: session ) query = <<~QUERY query { job(id: "gid://shopify/Job/dc9b2604-c73b-45c6-8942-e235bac987e8") { id done } } QUERY response = client.query(query: query) ``` #### Node.js ```javascript const client = new shopify.clients.Graphql({session}); const data = await client.query({ data: `query { job(id: "gid://shopify/Job/dc9b2604-c73b-45c6-8942-e235bac987e8") { id done } }`, }); ``` #### Response ```json { "job": { "id": "gid://shopify/Job/dc9b2604-c73b-45c6-8942-e235bac987e8", "done": false } } ``` ## Get the status of a queued collectionUpdate job [Open in GraphiQL](http://localhost:3457/graphiql?query=query%20%7B%0A%20%20job\(id%3A%20%22gid%3A%2F%2Fshopify%2FJob%2Fdc9b2604-c73b-45c6-8942-e235bac987e8%22\)%20%7B%0A%20%20%20%20id%0A%20%20%20%20done%0A%20%20%7D%0A%7D) ```javascript import { authenticate } from "../shopify.server"; export const loader = async ({request}) => { const { admin } = await authenticate.admin(request); const response = await admin.graphql( `#graphql query { job(id: "gid://shopify/Job/dc9b2604-c73b-45c6-8942-e235bac987e8") { id done } }`, ); const json = await response.json(); return json.data; } ``` ##### GQL ``` query { job(id: "gid://shopify/Job/dc9b2604-c73b-45c6-8942-e235bac987e8") { id done } } ``` ##### cURL ``` curl -X POST \ https://your-development-store.myshopify.com/admin/api/2025-10/graphql.json \ -H 'Content-Type: application/json' \ -H 'X-Shopify-Access-Token: {access_token}' \ -d '{ "query": "query { job(id: \"gid://shopify/Job/dc9b2604-c73b-45c6-8942-e235bac987e8\") { id done } }" }' ``` ##### React Router ``` import { authenticate } from "../shopify.server"; export const loader = async ({request}) => { const { admin } = await authenticate.admin(request); const response = await admin.graphql( `#graphql query { job(id: "gid://shopify/Job/dc9b2604-c73b-45c6-8942-e235bac987e8") { id done } }`, ); const json = await response.json(); return json.data; } ``` ##### Node.js ``` const client = new shopify.clients.Graphql({session}); const data = await client.query({ data: `query { job(id: "gid://shopify/Job/dc9b2604-c73b-45c6-8942-e235bac987e8") { id done } }`, }); ``` ##### Ruby ``` session = ShopifyAPI::Auth::Session.new( shop: "your-development-store.myshopify.com", access_token: access_token ) client = ShopifyAPI::Clients::Graphql::Admin.new( session: session ) query = <<~QUERY query { job(id: "gid://shopify/Job/dc9b2604-c73b-45c6-8942-e235bac987e8") { id done } } QUERY response = client.query(query: query) ``` ## Response JSON ```json { "job": { "id": "gid://shopify/Job/dc9b2604-c73b-45c6-8942-e235bac987e8", "done": false } } ```