Graphweaver supports uploading media to a storage provider, and rendering images in the admin UI. To do this, Graphweaver supplies a storage provider class and a MediaField decorator to connect and describe the media being uploaded. An example of using AWS S3 to handle images can be seen in the examples folder.
@MediaField decorator
The @MediaField decorator is used to describe a field that represents media. It accepts:
storageProvider- A provider that connects the storage provider to the Graphweaver GraphQL API.
An example of a storage provider and usage of the @MediaField decorator can be seen below: