import process from "node:process";
export const octokitGraphQLExample = (async () => {
const { graphql } = await import("npm:@octokit/graphql");
return await graphql(
`
{
repository(owner: "octokit", name: "graphql.js") {
issues(last: 3) {
edges {
node {
title
}
}
}
}
}
`,
{
headers: {
authorization: `token ${process.env.github_token}`,
},
},
);
})();