# S3 connector

This connector creates all the mutations and query to upload and retrieve files from an S3 bucket

At the moment, the connector is using the local machine AWS credentials

## Usage

**S3 config**

```js
{
  connectors: {
    [key: string]: { // user defined name for the connector
      type: '@funfunz/s3-data-connector'',
      config: {
        bucket: string // name of the bucket
        region?: string // region of the bucket
        apiVersion?: string // api version to use
      },
    }
    ...
  }
}
```

**S3 entity**

```js
import { model } from '@funfunz/s3-data-connector'

export default model({
      name: 's3', // name for the entity, this will be visible under the GraphQL docs
      connector: 's3' // name defined by the user on the config file
    })
```
