apollographql / apollographql/fullstack-tutorial

new Buffer is deprecated

Open
#40 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
1.2k
Forks
808
PR merge metrics
No merged PRs in 30d

Description

in `server/src/resolvers.js` in part 3 of the tutorial:

`if (user) return new Buffer(email).toString('base64');` should be changed to:
`if (user) return Buffer.from(email).toString('base64');`

Contributor guide

No contributing guide indexed for this repository

Research direction

Open server/src/resolvers.js and locate the resolver code in part 3 of the tutorial. Replace the deprecated Buffer construction with the Buffer.from form shown in the issue, then verify that the tutorial’s relevant checks still pass and that the deprecated usage is gone.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
api, backend
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.