How can I get all the repository a user participate in by using v4 api, thanks a lot !

I want to get all  the repository a user participate in. How should I do using v4 api ? Thanks.

@yuajuan 

Did you tried the below query

{
	rateLimit {
		cost
		limit
		nodeCount
		remaining
		resetAt
	}
	viewer {
		repositories(first: 50) {
			nodes {
				name
				url
			}
			pageInfo {
				endCursor
				hasNextPage
			}
		}
	}
}