
Security News
Django Joins curl in Pushing Back on AI Slop Security Reports
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
apollo-logger
Advanced tools
npm install --save-dev apollo-logger
For full logging you will need to attach Apollo Logger to:
import { addApolloLogging } from 'apollo-logger';
let networkInterface = addApolloLogging(createBatchingNetworkInterface({
...
}));
const pubsub = addApolloLogging(new PubSub());
const subscriptionManager = addApolloLogging(new SubscriptionManager(...));
On each example the result of operation comes after =>
getPost({"id":"3"}) => {"data":{"post":{"id":"3","title":"Post title 3", "__typename":"Post"}}}
addCount({"amount":1}) => {"data":{"addCount":{"amount":17,"__typename":"Count"}}}
onCountUpdated({}) => subscription: 2
{"commentUpdated":{"mutation":"CREATED","id":"3003", ... ,"__typename":"UpdateCommentPayload"}}
unsubscribe from subscription: 2
pubsub publish [ 'countUpdated',
{ id: 1, created_at: null, updated_at: null, amount: 7 } ]
pubsub subscribe postsUpdated => 2
pubsub unsubscribe [ 2 ]
pubsub msg postsUpdated({"mutation":"CREATED","id":21,"node":{"id":21,"title":"New post 1"}})
pubsub filter postsUpdated(opts = {"query":...,"context":{}}, args = {"endCursor":10}, name = postsUpdated)
.postsUpdated(val = {"mutation":"CREATED","id":21,"node":{"id":21,"title":"New post 1"}}, ctx = {}) => true
Copyright © 2017 SysGears INC. This source code is licensed under the MIT license.
FAQs
Apollo GraphQL Logger
The npm package apollo-logger receives a total of 339 weekly downloads. As such, apollo-logger popularity was classified as not popular.
We found that apollo-logger demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.