You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const express = require('express');
const app = express();
const {ApolloServer} = require('apollo-server-express');
const server = new ApolloServer({schema});
server.applyMiddleware({app, path: '/graphql'});
app.listen(4000,()=>console.log(`server started on port $4000}`));
@abhirham I was having the same issue after I upgraded to Apollo Server 2.0. In order to fix it I had to add an explicit mapping from graphql field to sql column. Example:
Below is my app.js.
Here is my schema:
Here is the query:
Here is the sql generated by joinmonster:
As you can see, I am requesting for
FIRST_NAME
, but joinmonster is not including it in the generated sql.This is not the case when I use
express-graphql
. It works fine.Here is the link to my stackOverflow with all the details: https://stackoverflow.com/q/60868650/6425689
The text was updated successfully, but these errors were encountered: