You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/graphql/models/User.js
+11-1Lines changed: 11 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,7 @@ import {
4
4
GraphQLInt,
5
5
GraphQLNonNull,
6
6
GraphQLList,
7
+
GraphQLBoolean,
7
8
}from'graphql';
8
9
import{
9
10
AvatarTypes,
@@ -44,7 +45,16 @@ const User = new GraphQLObjectType({
44
45
avatarUrl: {
45
46
type: GraphQLString,
46
47
description: 'returns avatar url from facebook, github or gravatar',
47
-
resolve: avatarUrlResolver(),
48
+
args: {
49
+
renderAvatarData: {
50
+
desription:
51
+
'Renders data-url from avatarData for users with avatarType is OpenPeeps. When false (default), OpenPeeps avatars will return null for avatarUrl directly',
0 commit comments