Access to FilesManagerFiles GraphQl Query

Topic summary

Goal: replicate the Files page data and, specifically, identify which products/collections/articles a file is connected to via connectedResourceInfos.

Findings: The Shopify Admin UI appears to use an internal FilesManagerFiles GraphQL operation that includes connectedResourceInfos. However, the public Admin GraphQL files query does not expose this field.

Docs check: The linked unstable Admin GraphQL docs for files do not list connectedResourceInfos. Screenshots highlight the discrepancy between the internal UI’s query and public schema.

Technical status: In the public Admin GraphQL API, the File type lacks any field to determine its connected resource. Example File fields include id, alt, createdAt, fileStatus, preview, updatedAt.

Workarounds: Suggested approach is to maintain your own mapping, e.g., store file IDs or references in product/collection metafields. Without this, you’d have to iterate resources to match files.

Official update: Shopify staff confirm there’s currently no public way to fetch connected resource info for Files. Feedback has been forwarded; no ETA. The issue remains open.

Summarized with AI on December 26. AI used: gpt-5.

To create my Shopify App, I need the same table as you can find on the Content → Files page:

As I researched, this page using
https://admin.shopify.com/api/shopify/?operation=FilesManagerFiles&type=query
With provided files query

But as i can see, connectedResourceInfos , that provides info about an object image connected with (it is very required for me), doesn’t exists on the files query

How can I get access to that query, or is there is a way to take the same result with other query?

HI, there

Your could refer to this

https://shopify.dev/docs/api/admin-graphql/unstable/queries/files

You are partially right, but the documentation does not contain the connectedResourceInfos field. I really need it to know which object the file belongs to.
Otherwise, is there any way to find out without going through all the products, collections and articles in the store, matching the file?

Hi, @atyaglik

Sorry for the confusion. After reviewing the Shopify GraphQL schema, it appears that there is no direct field available within File type to determine the specific product or collection it is connected to.

interface File {
alt: String
createdAt: DateTime!
fileErrors: [FileError!]!
fileStatus: FileStatus!
id: ID!
preview: MediaPreviewImage
updatedAt: DateTime!
}

But i noticed you could use a metafield to the product or collection object to store the file ID or a reference to the file.

what do you think?

Hi @atyaglik ,

Thanks for your post. There isn’t currently a way to get the connected resource info for the Files resource in the public GraphQL Admin API so we’ve passed along some feedback about it on your behalf.

Hope you have a great day