@funfunz/s3-data-connector
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

Funfunz S3 Data Connector

Discord Build Status codecov node npm version PRs Welcome GitHub

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

Documentation

Just follow the link

Usage

S3 config

{
  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

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
    })

Package Sidebar

Install

npm i @funfunz/s3-data-connector

Weekly Downloads

0

Version

0.1.2

License

MIT

Unpacked Size

27.7 kB

Total Files

17

Last publish

Collaborators

  • joaogsleite
  • jwebcoder