category link

On this page.

I have a button to show more items from the same country the book item is from.
I have linked the button to the country section of my database. I want this button to link to all the items that have the same value inside this database in this case: “Germany” which is part of the “Country” field
The problem is that I can only link this button to a page featuring all items from the country category. I would need the system to check the specific entry in the database and link to all elements with the same entry. I don’t know how to do it and I cannot code. Perhaps that you can help.

Can somebody help me? I have tried this code without success

import wixData from ‘wix-data’;

// …

function runQuery(low, high) {
let query = wixData.query(“livres”);

if (low) {
query = query.ge(“pays”, low);
}

query.find()
.then( (results) => {
$w(“#button1”).onClick( (event) => {
let targetId = event.target.id;}