Skip to content

Commit

Permalink
Merge pull request #45 from bikingbadger/42-not-all-weight-is-being-r…
Browse files Browse the repository at this point in the history
…eturned

Set fetch last 90 weight records
  • Loading branch information
bikingbadger authored Jun 17, 2020
2 parents 2abcafc + 2d9c840 commit 989b13b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/functions/weight-read-all.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,13 @@ exports.handler = (event, context, callback) => {
data: {
query: `
query FindAllWeights {
allWeights {
allWeights(_size: 90) {
data {
weightDate
weightKilograms
}
before
after
}
}
`,
Expand All @@ -37,6 +39,7 @@ exports.handler = (event, context, callback) => {
});
})
.catch((error) => {
console.log(error);
console.log('===============================================');
console.log('===============================================');
return callback(null, {
Expand Down

0 comments on commit 989b13b

Please sign in to comment.