feat: created Fetch

This commit is contained in:
원더 2021-01-05 11:35:47 +09:00
parent 2e50841010
commit 81795f874c

6
utils/Fetch.ts Normal file
View File

@ -0,0 +1,6 @@
import DataLoader from 'dataloader'
import * as Query from './Query'
const loaders = {
user: new DataLoader(async(ids:string) => await Query.getUser(ids))
}