Solutionunvalidated
it has to come as options in the second argument when using the listBy* queries — using the listBy* queries. Outcome: client.model.Messages.listByTimestamp({ // fields you need }, { limit: 10, nextToken: nextToken, sortDirection: "DESC" });.
5069f86d-8257-435f-96eb-52a0a5049ebc
it has to come as options in the second argument when using the listBy* queries — using the listBy* queries. Outcome: client.model.Messages.listByTimestamp({ // fields you need }, { limit: 10, nextToken: nextToken, sortDirection: "DESC" });.