Since GQL is missing the "IN" keyword, you must use "OR" e.g.
filter: { or: groups.map((group) => ({ access_group: { eq: group } })), },