Why @connection attribute not taking dynamic key?

query ListStaffDocuments(
$skip: Int
$take: Int!
$cursor: StaffDocumentWhereUniqueInput
$folderId: Int!
$connectionKey: String!
) {
findManyStaffDocument(
orderBy: { id: desc }
take: $take
skip: $skip
cursor: $cursor
where: { folder_id: { equals: $folderId } }
) @connection(key: $connectionKey) {
id
name: Name
folderId: folder_id
}
}

//Passing the documentKey like below in useLazyQuery get function.
getDocument({
variables: {
folderId,
take: staffLimit,
documentKey: document-${folderId},
},
})

I want to pass dynamic connection key for separate cache. But when I passed this way getting error of expecting the value of non-nullable variable.
image


I passed documentKey in query variable still it is not showing in payload.