Skip to content

Commit 89b2c15

Browse files
Update README.md with corrected S3 initialization
No need to take my word for it, you figured it out first :-) https://medium.com/@maticzav/graphcool-1-0-examples-series-file-api-3b16b4b8785f
1 parent 3117db0 commit 89b2c15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import { upload } from 'graphql-middleware-apollo-upload-server'
3333
const client = new S3({
3434
accessKeyId: __S3_KEY__,
3535
secretAccessKey: __S3_SECRET__,
36-
Bucket: __S3_BUCKET__,
36+
params: { Bucket: __S3_BUCKET__ },
3737
})
3838

3939
const uploadToS3 = async file => {

0 commit comments

Comments
 (0)