skeet
Version:
Full-stack TypeScript Serverless Framework
14 lines (12 loc) • 325 B
text/typescript
import { GRAPHQL_PATH } from '@/lib/getNetworkConfig'
export const graphqlIndex = async (modelName: string) => {
const filePath = GRAPHQL_PATH + '/modelManager/' + modelName + '/index.ts'
const body = `export * from './model'
export * from './query'
export * from './mutation'
`
return {
filePath,
body,
}
}