Directory
Requires access scope, access scope, access scope, access scope, access scope, access scope or access scope.
Represents a directory for organizing files.
Anchor to FieldsFields
- alt (String)
- createdAt (DateTime!)
- fileErrors ([FileError!]!)
- files (FileConnection!)
- fileStatus (FileStatus!)
- id (ID!)
- name (String!)
- parentDirectoryId (ID)
- path (String!)
- preview (MediaPreviewImage)
- updatedAt (DateTime!)
- •String
A word or phrase to describe the contents or the function of a file.
- Anchor to createdAtcreated•Date
At Time! non-null The date and time (ISO 8601 format) when the file was created.
- Anchor to fileErrorsfile•[File
Errors Error!]! non-null Any errors that have occurred on the file.
Show fields
- Anchor to filesfiles•File
Connection! non-null The files and directories directly contained in the directory.
Show fields
- Anchor to afterafter•String
The elements that come after the specified cursor.
- Anchor to beforebefore•String
The elements that come before the specified cursor.
- Anchor to firstfirst•Int
The first
nelements from the paginated list.- Anchor to lastlast•Int
The last
nelements from the paginated list.- Anchor to queryquery•String
A filter made up of terms, connectives, modifiers, and comparators. You can apply one or more filters to a query. Learn more about Shopify API search syntax.
Show filters
- Anchor to default•string
Filter by a case-insensitive search of multiple fields in a document.
query=Bob Normanquery=title:green hoodie- Anchor to created_at•time
- Anchor to filename•string
- Anchor to ids•string
- Anchor to media_type•string
- Anchor to original_upload_size•string
Filter by the file's original upload size in bytes. This filter supports both exact values and ranges. It accepts an optional unit of measurement as a suffix (B, KB, MB, GB, TB). When no unit is provided, the value is interpreted as bytes. Units use binary (1024-based) multipliers.
original_upload_size:1024original_upload_size:1.5MBoriginal_upload_size:>=10MB original_upload_size:<=100MBoriginal_upload_size:512KB- Anchor to parent_directory_id•id
Scopes the files query to files whose parent directory is the specified directory ID.
parent_directory_id:123456789- Anchor to parent_directory_path•string
Scopes the files query to files whose parent directory path matches the provided path. There is no root directory: files live in the default 'public' directory, so use 'public' for top-level files and a trailing /* prefix query to match descendant parent paths.
parent_directory_path:'public'parent_directory_path:'public/assets'parent_directory_path:'public/assets' OR parent_directory_path:public/assets/*- Anchor to product_id•string
- Anchor to status•string
- Anchor to updated_at•time
- Anchor to used_in•string
Example:
Example:
Example:
Example:
- Anchor to reversereverse•BooleanDefault:false
Reverse the order of the underlying list.
- Anchor to savedSearchIdsaved•ID
Search Id The ID of a saved search. The search’s query string is used as the query argument.
- Anchor to sortKeysort•Directory
Key File Sort Keys Default:ID Sort the underlying list using a key. If your query is slow or returns an error, then try specifying a sort key that matches the field used in the search.
Show enum values
Arguments
- Anchor to fileStatusfile•File
Status Status! non-null The status of the file.
Show enum values
- •ID!non-null
A globally-unique ID.
- Anchor to namename•String!non-null
The name of the file.
- Anchor to parentDirectoryIdparent•ID
Directory Id The ID of the directory that directly contains the file. This value is null when the file is in the root directory.
- Anchor to pathpath•String!non-null
The full path of the file from the root directory.
- Anchor to previewpreview•Media
Preview Image The preview image for the media.
Show fields
- Anchor to updatedAtupdated•Date
At Time! non-null The date and time (ISO 8601 format) when the file was last updated.