Core GraphQL APIReferenceQueries
Files__files
Authenticated · x-tenant · Lists reusable files for this store. Requires a signed-in staff user. Needs the `files__File` `read` permission. Send the `x-tenant` header (the gateway sets it from your API key).
QUERY
files__files(where: CommonPaginationDto): FilesWithPagination!Authenticated · x-tenant · Lists reusable files for this store. Requires a signed-in staff user. Needs the files__File read permission. Send the x-tenant header (the gateway sets it from your API key).
Arguments
where?Returns
- files__files
meta?nodes?Example Request
query Files__files { files__files { meta { currentPage hasNextPage totalCount totalPages } nodes { _id alt commits { action committedAt note } createdAt createdBy { email name phoneNumber referenceId } directory mimeType originalName size tenant } }}{ "data": { "files__files": { "meta": { "currentPage": 10.5, "hasNextPage": true, "totalCount": 10.5, "totalPages": 10.5 }, "nodes": [ { "_id": "1", "alt": "string", "commits": [ { "action": "string", "committedAt": "<DateTime>", "note": "string" } ], "createdAt": "<DateTime>", "createdBy": { "email": "string", "name": "string", "phoneNumber": "string", "referenceId": "1" }, "directory": "string", "mimeType": "string", "originalName": "string", "size": 10, "tenant": "string" } ] } }}