GraphQl query to get all repos for an organization is:
Check repository fields to check what all more fields you can get for all repositories.
This query will get you first 100 repositories ordered by creation date.
To get more, you can use the cursor that is returned response in following query:
I used python script to iteratively request all repositories and write to files:
This creates multiple files with responses from Github until response has no results.