We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ef6bd7 commit 7d4ec7bCopy full SHA for 7d4ec7b
src/graphql/user.ts
@@ -24,6 +24,7 @@ export const typeDef = gql`
24
series_list: [Series]
25
user_meta: UserMeta
26
is_followed: Boolean
27
+ is_trusted: Boolean
28
}
29
type UserProfile {
30
id: ID!
@@ -122,6 +123,9 @@ export const resolvers: IResolvers<any, ApolloContext> = {
122
123
if (!ctx.user_id) return false;
124
return await userService.isFollowed(parent.id, ctx.user_id);
125
},
126
+ is_trusted: async (parent: User, _, ctx) => {
127
+ return true;
128
+ },
129
130
Query: {
131
user: async (parent: any, { id, username }: any) => {
0 commit comments