For full logging you will need to attach Apollo Logger to:
Apollo Link
Apollo Express Server
And PubSub
import { LoggingLink, wrapPubSub, formatResponse } from 'apollo-logger';const logOptions = { logger: console.log };const link = ApolloLink.from([ new LoggingLink(logOptions), new HttpLink({uri: ...}));...app.use('/graphql', bodyParser.json(), graphqlExpress({ schema: myGraphQLSchema, formatResponse: formatResponse.bind(logOptions) });...const pubsub = wrapPubSub(new PubSub(), logOptions);
Sample output
On each example the result of operation comes after =>
Query:
{"data":{"post":{"id":20,"title":"Post title 20","content":"Post content 20","__typename":"Post","comments":[{"id":39,"content":"Comment title 1 for post 20","__typename":"Comment"},{"id":40,"content":"Comment title 2 for post 20","__typename":"Comment"}]}}} <= post({"id":"20"})