aws-amplify / amplify-js

A declarative JavaScript library for application development using cloud services.
https://docs.amplify.aws/lib/q/platform/js
Apache License 2.0
9.42k stars 2.13k forks source link

Querying AWS IoT Thing registry/thing shadow using GraphQL #4182

Closed elgutierrez closed 4 years ago

elgutierrez commented 5 years ago

Which Category is your question related to? GraphQL API

What AWS Services are you utilizing? AWS IoT

Provide additional details e.g. code snippets I would like to use Amplify with AWS IoT. Is it possible to integrate the thing registry and thing shadow? How could I map it to a GraphQL schema and use the queries, mutations and other resources generated by Amplify?

elorzafe commented 5 years ago

Hi @elgutierrez, What problem are you trying to solve? You want to send data from a thing to AppSync and then query that data?

elgutierrez commented 5 years ago

Hey @elorzafe, yes that's it, I would like sending data from a thing, applying rules, etc using AWS IoT and querying (current and past data) on my frontend using the default GraphQL API. Also, is it possible to query the things registry from GraphQL?

Also, I've seen this paragraph at https://aws.amazon.com/appsync/:

Internet of Things
You can use AWS AppSync to access IoT device data sent to AWS IoT. For instance, you can build a real-time dashboard in a mobile or web application to visualize telemetry from a connected car.

But there's no reference architecture as the other topics.

jkeys-ecg-nmsu commented 5 years ago

Also, is it possible to query the things registry from GraphQL?

AppSync supports Lambda resolvers so you can always implement this logic in a Lambda. Not sure how to get started beyond writing the lambda tho.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 4 years ago

This issue has been automatically closed because of inactivity. Please open a new issue if are still encountering problems.

github-actions[bot] commented 3 years ago

This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs.

Looking for a help forum? We recommend joining the Amplify Community Discord server *-help channels or Discussions for those types of questions.