<@U0RQY0KK5> is there a way to filter a relation b...
# prisma-whats-new
c
@nilan is there a way to filter a relation by the
user.id
within a user query?
Copy code
const userQuery = gql`
  query userQuery {
    user {
      id
      organizations {
        id
        name
        campaigns(filter: { users_some: { id: user_id } }) {
          id
          name
          description
        }
      }
    }
  }
`;
That fails with the
user_id
reference (obviously)
a
You need to pass in the userId in this case, there is no 'currentUser' parameter. I believe there is a FR for it...