Skip to content

Commit

Permalink
Merge pull request #30 from ioedeveloper/user-query
Browse files Browse the repository at this point in the history
User query added
  • Loading branch information
ioedeveloper authored Mar 19, 2021
2 parents 47da4f0 + 813eca4 commit cf6b4f6
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions src/queries.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export * from "./user"
export {User} from "./user"

/**
* @description Github Graphql Query for Viewer
Expand Down Expand Up @@ -868,7 +868,21 @@ export const ViewerFollowers = `
}
}
}
`
`;

/**
* @description Github Graphql Query for Github User
* @queryVariable
* login username
* fields User
*/
export const UserQuery = (login: string, fields:string) => `
{
user (login: "${login}") {
${fields}
}
}
`;

/**
* @description Github Graphql Query for All User Repositories
Expand Down

0 comments on commit cf6b4f6

Please sign in to comment.