# job - admin-graphql - QUERY Version: 2025-01 ## Description Returns a Job resource by ID. Used to check the status of internal jobs and any applicable changes. ### Access Scopes ## Arguments * [id](/docs/api/admin-graphql/2025-01/scalars/ID): ID! - ID of the job to query. ## Returns * [done](/docs/api/admin-graphql/2025-01/scalars/Boolean): Boolean! This indicates if the job is still queued or has been run. * [id](/docs/api/admin-graphql/2025-01/scalars/ID): ID! A globally-unique ID that's returned when running an asynchronous mutation. * [query](/docs/api/admin-graphql/2025-01/objects/QueryRoot): QueryRoot This field will only resolve once the job is done. Can be used to ask for object(s) that have been changed by the job. ## Examples ### Get the status of a queued collectionUpdate job Curl example: "curl -X POST \\\nhttps://your-development-store.myshopify.com/admin/api/2025-01/graphql.json \\\n-H 'Content-Type: application/json' \\\n-H 'X-Shopify-Access-Token: {access_token}' \\\n-d '{\n\"query\": \"query { job(id: \\\"gid://shopify/Job/dc9b2604-c73b-45c6-8942-e235bac987e8\\\") { id done } }\"\n}'\n" Node example: "const client = new shopify.clients.Graphql({session});\nconst data = await client.query({\n data: `query {\n job(id: \"gid://shopify/Job/dc9b2604-c73b-45c6-8942-e235bac987e8\") {\n id\n done\n }\n }`,\n});\n" Ruby example: "session = ShopifyAPI::Auth::Session.new(\n shop: \"your-development-store.myshopify.com\",\n access_token: access_token\n)\nclient = ShopifyAPI::Clients::Graphql::Admin.new(\n session: session\n)\n\nquery = <<~QUERY\n query {\n job(id: \"gid://shopify/Job/dc9b2604-c73b-45c6-8942-e235bac987e8\") {\n id\n done\n }\n }\nQUERY\n\nresponse = client.query(query: query)\n" Remix example: "const { admin } = await authenticate.admin(request);\n\nconst response = await admin.graphql(\n `#graphql\n query {\n job(id: \"gid://shopify/Job/dc9b2604-c73b-45c6-8942-e235bac987e8\") {\n id\n done\n }\n }`,\n);\n\nconst data = await response.json();\n" Graphql query: "query {\n job(id: \"gid://shopify/Job/dc9b2604-c73b-45c6-8942-e235bac987e8\") {\n id\n done\n }\n}" #### Graphql Input null #### Graphql Response { "data": { "job": { "id": "gid://shopify/Job/dc9b2604-c73b-45c6-8942-e235bac987e8", "done": false } } }