Client: update named imports to default imports

This commit is contained in:
Barry Low committed 2018-09-17 12:38:41 -07:00
1 parent e4f03fb701
commit 40c658023c
17 files changed
+419 -249

No files matched your search

+11 -14
View File
@@ -83,7 +83,7 @@ const resolvers = {
async teamByName(parent, { name }, ctx, info) {
return ctx.db.query.team({ where: { name: name } }, `{ name }`)
},
async teamByOwner(parent, { ownerId }, ctx, info) {
async teamsByOwner(parent, { ownerId }, ctx, info) {
return ctx.db.query.teamsConnection({where: { owner: { authId: ownerId }}},
`{
edges {
@@ -91,27 +91,24 @@ const resolvers = {
id
name
slug
owner
status {
status
reason
createdAt
}
createdAt
profile {
avatar
description
motto
}
owner {
authId
nickname
visible
profile {
avatar
}
updatedAt
}
members {
role
member {
nickname
visible
profile {
avatar
}
alias
authId
}
}
}
+1 -1
View File
@@ -10,7 +10,7 @@ type Query {
teamDetails: [Team!]! @isAuthenticated
teamByName(name: String!): Team
teamById(teamId: String!): Team
teamByOwner(ownerId: String!): TeamConnection
teamsByOwner(ownerId: String!): TeamConnection
owner: Member @isAuthenticated
currentMember: Member @isAuthenticated
member(authId: String!): Member @isAuthenticated