The AWS Amplify CLI is a toolchain for simplifying serverless web and mobile development. This plugin provides functionality for the API category, allowing for the creation and management of GraphQL and REST based backends for your amplify project.
I'm trying to get real-time data using observeQuery. I have a Chat model that has a relationship with a Message model. However, I'm unable to fetch the real-time data when I use observeQuery on the Chat model. If I add observeQuery on the Message model, I can fetch the data, but this isn't ideal because the Message model contains a very large amount of data. Is there a way to effectively use observeQuery on the Chat model to get all related messages without dealing with the Message model's data?
Amplify CLI Version
12.12.2
Question
I'm trying to get real-time data using
observeQuery
. I have aChat
model that has a relationship with aMessage
model. However, I'm unable to fetch the real-time data when I useobserveQuery
on theChat
model. If I addobserveQuery
on theMessage
model, I can fetch the data, but this isn't ideal because the Message model contains a very large amount of data. Is there a way to effectively useobserveQuery
on the Chat model to get all related messages without dealing with theMessage
model's data?I'm using
Nuxt 3
.NOT WORKING
šWORKING
š