Skip to content

Commit

Permalink
Add new fields to query
Browse files Browse the repository at this point in the history
  • Loading branch information
saurabhbhatia committed Aug 22, 2024
1 parent 9292e90 commit 3018401
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/graphql/types/creator_profile_type.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ class CreatorProfileType < Types::BaseObject
field :skills, String
field :formatted_bio, String
field :avatar, String, null: false
field :twitter, String
field :website, String
field :youtube, String
field :tiktok, String
field :facebook, String
field :instagram, String
field :email, String

def avatar
if object.avatar.present?
Expand Down

0 comments on commit 3018401

Please sign in to comment.