added $first and $after query parameters