Skip to content

Commit cd9e487

Browse files
committed
Documenting ecodev becoming optionnal
1 parent b656fd3 commit cd9e487

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

docs/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ sidebar_label: Changelog
66

77
## 4.1
88

9+
Breaking change:
10+
11+
There is one breaking change introduced in the minor version (this was important to allow PHP 8 compatibility).
12+
13+
- The **ecodev/graphql-upload** package (used to get support for file uploads in GraphQL input types) is now a "recommended" dependency only.
14+
If you are using GraphQL file uploads, you need to add this package to your `composer.json`.
15+
916
New features:
1017

1118
- All annotations can now be accessed as PHP 8 attributes

docs/file_uploads.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,16 @@ sidebar_label: File uploads
77
GraphQL does not support natively the notion of file uploads, but an extension to the GraphQL protocol was proposed
88
to add support for [multipart requests](https://github.com/jaydenseric/graphql-multipart-request-spec).
99

10+
## Installation
11+
1012
GraphQLite supports this extension through the use of the [Ecodev/graphql-upload](https://github.com/Ecodev/graphql-upload) library.
1113

14+
You must start by installing this package:
15+
16+
```console
17+
$ composer require ecodev/graphql-upload
18+
```
19+
1220
## If you are using the Symfony bundle
1321

1422
If you are using our Symfony bundle, the file upload middleware is managed by the bundle. You have nothing to do

0 commit comments

Comments
 (0)