OSDN Git Service

transitionを使って多少アニメーションさせた
[ngware/todo_client.git] / apollo-server / context.js
1 import { db } from './utils/db'
2 import { processUpload } from './utils/upload'
3
4
5 // Context passed to all resolvers (third argument)
6 // req => Query
7 // connection => Subscription
8 // eslint-disable-next-line no-unused-vars
9 export default ({ req, connection }) => {
10   return {
11     db,
12     processUpload,
13
14   }
15 }