The following code example returns 404 when querying /api/v1/graphql:
const app = express();
const yoga = createYoga({
schema: // ...
});
app.use(`/api/v1/graphql`, yoga);
However, it works with the following:
const app = express();
const yoga = createYoga({
graphqlEndpoint: `/api/v1/graphql`,
schema: // ...
});
app.use(`/api/v1/graphql`, yoga);
If this is the expected behavior, we should document it 📖