MCPcopy Create free account
hub / github.com/Ashutosh00710/github-readme-activity-graph / getGraphQLQuery

Method getGraphQLQuery

src/fetcher.ts:14–39  ·  view source on GitHub ↗
(from: string, to: string)

Source from the content-addressed store, hash-verified

12 }
13
14 private getGraphQLQuery(from: string, to: string) {
15 return {
16 query: `
17 query userInfo($LOGIN: String!, $FROM: DateTime!, $TO: DateTime!) {
18 user(login: $LOGIN) {
19 name
20 contributionsCollection(from: $FROM, to: $TO) {
21 contributionCalendar {
22 weeks {
23 contributionDays {
24 contributionCount
25 date
26 }
27 }
28 }
29 }
30 }
31 }
32 `,
33 variables: {
34 LOGIN: this.username,
35 FROM: from,
36 TO: to,
37 },
38 };
39 }
40
41 private async fetch(graphQLQuery: Query): Promise<AxiosResponse<ResponseOfApi>> {
42 return axios({

Callers 2

fetchContributionsMethod · 0.95
fetching.test.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected