Hi,
I use async
and await
functions with meteor and apollo and it worked fine till I upgraded from 1.4.2.7 to 1.5.2.1.
Since then I get fiber errors when using a async functions in some ways with my apollo setup. For example, the error currently occures in my server setup with apollo-server-express:
Throwing: Invalid options provided to ApolloServer: Error: Can't wait without a fiber
in graphiql.
It happens due to this async-await function in my setup:
// setup the express-server-graphql
expressApp.use(
GRAPHQL_PATH,
bodyParser.json(),
graphqlExpress(async req => {
const context = await createContext(req.headers.authorization);
return {
schema,
context,
debug: Meteor.isDevelopment,
formatError,
};
}),
);
I’m using the following apollo versions:
"apollo-client": "^1.9.3",
"apollo-server-express": "^1.1.2",
"express": "^4.14.0",
I don’t get it why I get this error now … it worked before. Do you have any idea?