Add limit, offset and pagination to the graph resource with tests.