--- title: shopifyFunction - GraphQL Admin description: |- Returns a Shopify Function by its ID. [Functions](https://shopify.dev/apps/build/functions) enable you to customize Shopify's backend logic at defined parts of the commerce loop. api_version: 2025-10 api_name: admin type: query api_type: graphql source_url: html: https://shopify.dev/docs/api/admin-graphql/latest/queries/shopifyfunction md: https://shopify.dev/docs/api/admin-graphql/latest/queries/shopifyfunction.md --- # shopify​Function query Returns a Shopify Function by its ID. [Functions](https://shopify.dev/apps/build/functions) enable you to customize Shopify's backend logic at defined parts of the commerce loop. ## Arguments * id [String!](https://shopify.dev/docs/api/admin-graphql/latest/scalars/String) required The ID of the Shopify Function. *** ## Possible returns * Shopify​Function [Shopify​Function](https://shopify.dev/docs/api/admin-graphql/latest/objects/ShopifyFunction) A Shopify Function. *** ## Examples * ### shopifyFunction reference ## Query Reference ```graphql { shopifyFunction(id) { # shopifyFunction fields } } ```