Skip to content

Commit

Permalink
use new organizations connection field
Browse files Browse the repository at this point in the history
  • Loading branch information
sqs committed Jul 7, 2018
1 parent 654ff0d commit d806be8
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions cmd/src/users.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,12 @@ fragment UserFields on User {
username
displayName
siteAdmin
orgs {
id
name
displayName
organizations {
nodes {
id
name
displayName
}
}
emails {
email
Expand All @@ -61,13 +63,15 @@ fragment UserFields on User {
`

type User struct {
ID string
Username string
DisplayName string
SiteAdmin bool
Orgs []Org
Emails []UserEmail
URL string
ID string
Username string
DisplayName string
SiteAdmin bool
Organizations struct {
Nodes []Org
}
Emails []UserEmail
URL string
}

type UserEmail struct {
Expand Down

0 comments on commit d806be8

Please sign in to comment.