diff --git a/src/functions/weight-read-all.js b/src/functions/weight-read-all.js index d28b5a2..8b33098 100644 --- a/src/functions/weight-read-all.js +++ b/src/functions/weight-read-all.js @@ -16,11 +16,13 @@ exports.handler = (event, context, callback) => { data: { query: ` query FindAllWeights { - allWeights { + allWeights(_size: 90) { data { weightDate weightKilograms } + before + after } } `, @@ -37,6 +39,7 @@ exports.handler = (event, context, callback) => { }); }) .catch((error) => { + console.log(error); console.log('==============================================='); console.log('==============================================='); return callback(null, {