Snp to gene query

Hello, open target genetics is using the function to map the gene for snp by doing a snp to gene query. However, maybe because it was renewed, the old code doesn’t seem to work. Below is a part of the query statement.

search_query ← "
query searchRsId($rsId: String!) {
search(queryString: $rsId) {
variants {
id
}
}
}
"

query_string ← "
query v2g($variantId: String!) {
genesForVariant(variantId: $variantId) {
gene {
symbol
id
}
variant
overallScore
distances {
sourceId
aggregatedScore
tissues {
distance
}
}
}
}"

I wonder if it’s not available now or if the code has been changed.
Thank you.