Get repository/tree files names with latest update time efficiently

:hugs: Please help fill in this template with all the details to help others help you more efficiently. Use formatting blocks for code, config, logs and ensure to remove sensitive data.

Problem to solve

I have been trying to get repository tree file records and their latest update time

using such a API requests

Firstly get all files for the tree

https://gitlab.com/api/v4/projects/66677391/repository/tree?ref=8af436d5abd261d32919d6525dbad617f7207bcc&page=1&per_page=100

Afterward get latest update time for each file

https://gitlab.com/api/v4/projects/66677391/repository/commits?path=.gitignore&per_page=1

Is it possible somehow to call just one api request to get the data to keep it more efficient?
I supposed that it is possible using graphql but not find the way for now? Thanks in advance