Ryan
11/15/2021, 7:40 AMthdxr
11/15/2021, 1:02 PMthdxr
11/15/2021, 1:03 PMRyan
11/16/2021, 6:40 AMimport typeDefs from './schema.graphql';
...
const server = new ApolloServer({
typeDefs,
resolvers
});
in the Apollo Server lambda.
I discovered where to add esbuild plugins in an esbuild.js
file, and ended up adding this one
https://github.com/luckycatfactory/esbuild-graphql-loader
Can't figure out how to get it to import though 😕
const graphqlLoaderPlugin = require('@luckycatfactory/esbuild-graphql-loader');
module.exports = {
plugins: [
graphqlLoaderPlugin(),
]
};
I get this error
Error Transpiling Lambda code... TypeError: graphqlLoaderPlugin is not a function
Ryan
11/16/2021, 6:44 AMgraphqlLoaderPlugin.default()
thdxr
11/16/2021, 2:42 PMthdxr
11/16/2021, 2:42 PMRyan
11/17/2021, 12:31 AM