This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This is the attribute that continuation local storage uses to hold onto | |
const CLS_CONTEXT_ATTRIBUTE = 'ctx'; | |
// A formatError function that can be used with | |
// https://www.apollographql.com/docs/apollo-server/features/errors#for-the-client-response | |
function formatError (err) { | |
// The continuation-local-storage module attaches a context attribute to | |
// errors so that the context can be resolved from errors. The attribute | |
// is enumerable by default and so it gets included in GraphQL error | |
// reporing. That alone would not be a problem, but moleculer's context |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
===================================================== | |
vldPersonals - by VLD Interactive | |
---------------------------------------------------- | |
http://www.vldpersonals.com/ | |
http://www.vldinteractive.com/ | |
----------------------------------------------------- | |
Copyright (c) 2005-2011 VLD Interactive | |
===================================================== |