How to filter the JIRA Issues by specific versions ? using jql or $filter

I am using the the rest api v2

and i see jql=project=xyz
i would like to filter by specific version.

versions is field of array type, and the array has “name” :“v2”

i tried jql=project=xyz and versions/name=‘v2’
does not work
i also tried with escape character versions/name=‘version1’ did not work

“versions”: [
“id”: “351752”,
“name”: “v2”,
“archived”: false,
“released”: false

In JQL, the field is called ‘fixVersion’

Refer to the JQL Advanced Search Reference documentation for all the default field names.