在GraphQL中编写反映以下MySql查询的子查询的方式是什么。
SELECT * FROM users WHERE user_id IN (SELECT receiver_id FROM attachments WHERE sender_id = 'MY_ID')
我想要类似以下的内容
query {
users(where: {
id: {
_in: {
attachments(where:{sender_id: {_eq: 'MY_ID'}}){
returning{
receiver_id
}
}
}
}
}){
retunring{
user_id,
name
}
}