Field 'nodes' doesn't accept argument 'first'

I’m encountering an issue with the GitLab GraphQL API when attempting to paginate results. Specifically, I’m trying to use the first argument with the nodes field, but I’m receiving the following error:

Field ‘nodes’ doesn’t accept argument ‘first’

I expected the nodes field to accept the first argument and return a limited number of results. According to the GitLab GraphQL API documentation on pagination, it is suggested to use pagination arguments like first to limit the number of results returned. However, when I apply this to the nodes field, I encounter the error mentioned above.

My query :

{
“query”: “query project($projectFullPath: ID!, $after: Time, $scope: PipelineScopeEnum) {\n project(fullPath: $projectFullPath) {\n pipelines(updatedAfter: $after, scope: $scope) {\n nodes {\n id\n ref\n refPath\n path\n duration\n status\n createdAt\n finishedAt\n user {\n name\n }\n jobs {\n nodes {\n id\n name\n previousStageJobsOrNeeds {\n nodes {\n … on CiJob {\n name\n }\n … on CiBuildNeed {\n name\n }\n }\n }\n status\n stage {\n name\n }\n duration\n queuedDuration\n createdAt\n startedAt\n finishedAt\n scheduledAt\n }\n }\n downstream {\n nodes {\n id\n duration\n sourceJob {\n name\n }\n jobs {\n nodes(first: 200) {\n id\n name\n previousStageJobsOrNeeds {\n nodes {\n … on CiJob {\n name\n }\n … on CiBuildNeed {\n name\n }\n }\n }\n status\n stage {\n id\n name\n }\n duration\n queuedDuration\n createdAt\n startedAt\n finishedAt\n scheduledAt\n }\n }\n downstream {\n nodes {\n id\n duration\n sourceJob {\n name\n }\n jobs (first : 200) {\n nodes {\n id\n name\n previousStageJobsOrNeeds {\n nodes {\n … on CiJob {\n name\n }\n … on CiBuildNeed {\n name\n }\n }\n }\n status\n stage {\n id\n name\n }\n duration\n queuedDuration\n createdAt\n startedAt\n finishedAt\n scheduledAt\n }\n }\n }\n }\n }\n }\n }\n }\n }\n}”,
“variables”: {
“projectFullPath”: “*************”,
“after”: “2024-01-01T14:05:00.000”, // Replace with your actual start date in ISO format
“scope”: “TAGS”
}
}

Versions

Please select whether options apply, and add the version information.