LearnNewsExamplesServices
Frontmatter
id7591
titleImplement GraphQL Client & Auth Service
stateClosed
labels
enhancementai
assigneestobiu
createdAtOct 21, 2025, 1:04 PM
updatedAtOct 21, 2025, 1:21 PM
githubUrlhttps://github.com/neomjs/neo/issues/7591
authortobiu
commentsCount0
parentIssue7590
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtOct 21, 2025, 1:21 PM

Implement GraphQL Client & Auth Service

Closed v11.0.0 enhancementai
tobiu
tobiu commented on Oct 21, 2025, 1:04 PM
  1. A new singleton service, GraphqlService.mjs, is created.
  2. The service includes a method to get the GitHub auth token via gh auth token and cache it for subsequent requests.
  3. The service exposes a generic query() or request() method that handles:
    • Sending the GraphQL query/mutation to the GitHub API endpoint using the native fetch.
    • Attaching the necessary Authorization and Content-Type headers.
    • Basic error handling for network requests and GraphQL API errors.
tobiu assigned to @tobiu on Oct 21, 2025, 1:04 PM
tobiu added the enhancement label on Oct 21, 2025, 1:04 PM
tobiu added the ai label on Oct 21, 2025, 1:04 PM
tobiu added parent issue #7590 on Oct 21, 2025, 1:04 PM
tobiu referenced in commit 0c9d3f3 - "Implement GraphQL Client & Auth Service #7591" on Oct 21, 2025, 1:20 PM
tobiu closed this issue on Oct 21, 2025, 1:21 PM
tobiu cross-referenced by #7590 on Oct 23, 2025, 12:53 AM