As suggested by @adam-burns , I share the snippets of code involved in the Foody Zero Waste use case for the interaction with the ReflowOS backend both from the IoT device and the Telegram bot.
IoT device
the phyisical device performs the login and stores the token
This client makes much more interactions (queries and mutations) with the backend, but all the GraphQL queries are collected in this file: queries.js and @srfsh started reviewing it here.
As suggested by @adam-burns , I share the snippets of code involved in the Foody Zero Waste use case for the interaction with the ReflowOS backend both from the IoT device and the Telegram bot.
IoT device
offerIds
Telegram bot
This client makes much more interactions (queries and mutations) with the backend, but all the GraphQL queries are collected in this file: queries.js and @srfsh started reviewing it here.