I am using the library @apollo/client from React.js and if I use useQuery I can do something like that :
@apollo/client
useQuery
const GET_ACTIVITY = gql`...`