Skip to content
This repository has been archived by the owner on Feb 3, 2021. It is now read-only.

Commit

Permalink
Replace importAll with babel plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominic committed Jul 2, 2020
1 parent fa59e84 commit bc4e93d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions api/src/functions/graphql.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@ import {
makeMergedSchema,
makeServices,
} from '@redwoodjs/api'
import importAll from '@redwoodjs/api/importAll.macro'
import schemas from 'src/graphql/**/*.{js,ts}'
import services from 'src/services/**/*.{js,ts}'

import { db } from 'src/lib/db'

const schemas = importAll('api', 'graphql')
const services = importAll('api', 'services')

export const handler = createGraphQLHandler({
schema: makeMergedSchema({
schemas,
Expand Down

0 comments on commit bc4e93d

Please sign in to comment.