diff --git a/src/User/Avatar.php b/src/User/Avatar.php
index <HASH>..<HASH> 100644
--- a/src/User/Avatar.php
+++ b/src/User/Avatar.php
@@ -68,7 +68,8 @@ class User_Avatar extends Pluf_Model
                 'model' => 'User_Account',
                 'unique' => true,
                 'name' => 'account',
-                'relate_name' => 'avatar',
+                'relate_name' => 'avatars',
+                'graphql_name' => 'account',
                 'is_null' => false,
                 'editable' => false
             )
diff --git a/src/User/relations.php b/src/User/relations.php
index <HASH>..<HASH> 100644
--- a/src/User/relations.php
+++ b/src/User/relations.php
@@ -17,5 +17,10 @@ return array (
         'relate_to' => array(
             'User_Account'
         )
+    ),
+    'User_Avatar' => array(
+        'relate_to' => array(
+            'User_Account'
+        )
     )
 );
\ No newline at end of file
fix error while getting avatars by graphql