Skip to content

Commit 06004a6

Browse files
committed
query naming convention
1 parent dd8361e commit 06004a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/App.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const axiosGitHubGraphQL = axios.create({
1212

1313
const TITLE = 'React GraphQL GitHub Client';
1414

15-
const ISSUES_OF_REPOSITORY = `
15+
const GET_ISSUES_OF_REPOSITORY = `
1616
query (
1717
$organization: String!,
1818
$repository: String!,
@@ -80,7 +80,7 @@ const getIssuesOfRepository = (path, cursor) => {
8080
const [organization, repository] = path.split('/');
8181

8282
return axiosGitHubGraphQL.post('', {
83-
query: ISSUES_OF_REPOSITORY,
83+
query: GET_ISSUES_OF_REPOSITORY,
8484
variables: { organization, repository, cursor },
8585
});
8686
};

0 commit comments

Comments
 (0)