Skip to Content
StoreOSv0.27.1
Core GraphQL APIReferenceQueries

Files__attachments

Authenticated · x-tenant · Usage log of where files are attached. 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).

QUERYfiles__attachments(where: CommonPaginationDto): FileAttachmentsWithPagination!

Authenticated · x-tenant · Usage log of where files are attached. 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

  1. files__attachments
meta?
nodes?
Example Request
query Files__attachments {  files__attachments {    meta {      currentPage      hasNextPage      totalCount      totalPages    }    nodes {      _id      assetId      collection      createdAt      createdBy {        email        name        phoneNumber        referenceId      }      documentId      field      fileKey      tenant    }  }}
Example Response
{  "data": {    "files__attachments": {      "meta": {        "currentPage": 10.5,        "hasNextPage": true,        "totalCount": 10.5,        "totalPages": 10.5      },      "nodes": [        {          "_id": "1",          "assetId": "1",          "collection": "string",          "createdAt": "<DateTime>",          "createdBy": {            "email": "string",            "name": "string",            "phoneNumber": "string",            "referenceId": "1"          },          "documentId": "string",          "field": "string",          "fileKey": "string",          "tenant": "string"        }      ]    }  }}