import gql from 'graphql-tag';

export default gql`
  query GetPersonData {
    person: currentPerson {
      id
      age
      birthDate
      birthDay
      birthMonth
      birthYear
      campus {
        name
        shortCode
        id
      }
      home {
        city
        country
        id
        zip
        state
        street1
        street2
      }
      firstName
      lastName
      nickName
      email
      photo
      impersonationParameter
      groups(groupTypeIds: [25, 60]) {
        id
        groupType
        name
        photo
        members {
          person {
            id
          }
          role
        }
      }
      phoneNumbers {
        number
        rawNumber
      }
    }
  }
`;

import gql from 'graphql-tag';

export default gql`
  query GetPersonData {
    person: currentPerson {
      id
      age
      birthDate
      birthDay
      birthMonth
      birthYear
      campus {
        name
        shortCode
        id
      }
      home {
        city
        country
        id
        zip
        state
        street1
        street2
      }
      firstName
      lastName
      nickName
      email
      photo
      impersonationParameter
      groups(groupTypeIds: [25, 60]) {
        id
        groupType
        name
        photo
        members {
          person {
            id
          }
          role
        }
      }
      phoneNumbers {
        number
        rawNumber
      }
      followedTopics
    }
  }
`;

Add followedTopics to personQuery