title: AWS FlutterAmplify using DataStore
body: <p>How can we get the User Conversations with a query. Ideal would be to do a query to the user table and get all the user conversations loaded.
  example:</p>
  <pre><code>final user = await Amplify.DataStore.query(User.classType, where: User.ID.eq(id))
  </code></pre>
  <p>user.conversations to have the list of conversations loadd.</p>
  <p>If that can not be done, next would be to get all the conversations that have a specific User.
  example not working:</p>
  <pre><code>await Amplify.DataStore.query(UserConversation.classType
            where: UserConversation.USER.eq(user.id)
           )
  
  type Message @model @auth(rules: [{allow: public}]) {
    id: ID!
    ConversationId: Conversation @connection
    UserId: User @connection
    body: String
    createdDate: AWSDateTime!
  }
  
  type Conversation @model @auth(rules: [{allow: public}]) {
    id: ID!
    date: AWSDateTime
    readBy: [ReadBy] @connection(keyName: &quot;byConversation&quot;, fields: [&quot;id&quot;])
    users: [UserConversation] @connection(keyName: &quot;byConversation&quot;, fields: [&quot;id&quot;])
    name: String
    image: String
  }
  
  type ReadBy @model @auth(rules: [{allow: public}]) @key(name: &quot;byConversation&quot;, fields: [&quot;conversationID&quot;]) {
    id: ID!
    date: AWSDateTime
    RedByUsers: User @connection
    conversationID: ID
  }
  
  type User @model @auth(rules: [{allow: public}]) {
    id: ID!
    firstName: String
    lastName: String
    userImg: String
    createdDate: AWSDateTime
    updatedDate: AWSDateTime
    email: AWSEmail
    conversations: [UserConversation] @connection(keyName: &quot;byUser&quot;, fields: [&quot;id&quot;])
  }
  
  type UserConversation @model(queries: null) @key(name: &quot;byUser&quot;, fields: [&quot;userID&quot;, &quot;conversationID&quot;]) @key(name: &quot;byConversation&quot;, fields: [&quot;conversationID&quot;, &quot;userID&quot;]) @auth(rules: [{allow: public}, {allow: public}]) {
    id: ID!
    userID: ID!
    conversationID: ID!
    user: User! @connection(fields: [&quot;userID&quot;])
    conversation: Conversation! @connection(fields: [&quot;conversationID&quot;])
  }
  </code></pre>