Clone response too to avoid inconsistencies in muti query responses

Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
This commit is contained in:
Alexandre Bodin 2020-01-27 23:12:15 +01:00
parent c4898aa803
commit 6c738dd7c9
2 changed files with 2 additions and 0 deletions

View File

@ -185,6 +185,7 @@ module.exports = {
request: Object.assign(_.clone(context.request), {
graphql: null,
}),
response: _.clone(context.response),
});
// Execute policies stack.

View File

@ -246,6 +246,7 @@ module.exports = {
request: Object.assign(_.clone(context.request), {
graphql: null,
}),
response: _.clone(context.response),
});
// Note: we've to used the Object.defineProperties to reset the prototype. It seems that the cloning the context