Skip to content

Commit

Permalink
added fetching of groupTitle to arenaUser
Browse files Browse the repository at this point in the history
  • Loading branch information
DeividasSvaikauskas committed Nov 10, 2023
1 parent 35b8471 commit cc8b39a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/api/arenaApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ const toUser = (user: any): GQLArenaUser => ({
username: user.username,
profilePicture: user.picture,
slug: user.userslug,
groupTitle: user.groupTitle,
});

const toArenaPost = (post: any): GQLArenaPost => ({
Expand Down
1 change: 1 addition & 0 deletions src/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1178,6 +1178,7 @@ export const typeDefs = gql`
username: String!
profilePicture: String
slug: String!
groupTitle: String
}
type ArenaPost {
Expand Down
1 change: 1 addition & 0 deletions src/types/schema.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ export type GQLArenaUser = {
profilePicture?: Maybe<Scalars['String']>;
slug: Scalars['String'];
username: Scalars['String'];
groupTitle?: Scalars['String']
};

export type GQLArticle = {
Expand Down

0 comments on commit cc8b39a

Please sign in to comment.