frontend/graphql/user.gql (view raw)
 1fragment UserFields on UsersPermissionsUser {
 2  id
 3  username
 4  email
 5  confirmed
 6  lastName
 7  firstName
 8  lang
 9  onboardingUser
10  onboardingCreator
11  provider
12  events(pagination: {limit: 500}) {
13    data {
14      id
15      attributes {
16        uuid
17        name
18        date
19        address
20      }
21    }
22  }
23}
24
25query profile {
26  me {
27    id
28    username
29    profile {
30      ...UserFields
31    }
32  }
33}
34
35mutation updateMe($userUpdate: UsersPermissionsUserInput!) {
36  updateMe(data: $userUpdate) {
37    data {
38      id
39      attributes {
40        ...UserFields
41      }
42    }
43  }
44}