Seeing empty data when filtering on fileHash in queryAssets


#1

We have some legacy image urls that we want to gradually synchronise in to Squidex but want to keep track of what has already been uploaded. We are thinking that we could do that by locally generating the fileHash of the file to be uploaded and then filter via the API to see if it already exists. When we try to filter on a known fileHash we receive empty data. How is the hash for Assets.fileHash generated?

Thanks.

GraphQL query

{
  queryAssets(filter: "fileHash eq 'n+70iFqg6Em4HmDzxcyAHXI7OrC2hWFXXsu0F25zQ50='") {
    fileHash
    fileName
  }
}

Result

{
  "data": {
    "queryAssets": []
  }
}

#2

Hi,

it is a base64 encoded sha256 hash.