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

@@ -1,7 +1,7 @@
/* eslint-disable no-unused-vars */
import gql from 'graphql-tag'
export const CreateTeamMutation = gql`
const CREATE_TEAM = gql`
mutation CreateTeamMutation($name: String!, $slug: String!, $owner: String!) {
createTeam(name: $name, slug: $slug, owner: $owner) {
id
@@ -18,3 +18,5 @@ export const CreateTeamMutation = gql`
}
}
`
export default CREATE_TEAM
-40
View File
@@ -1,40 +0,0 @@
/* eslint-disable no-unused-vars */
import gql from 'graphql-tag'
export const GetTeamQuery = gql`
query teamDetailsQuery($auth0id: String!) {
teamByOwner(ownerId: $auth0id) {
edges {
node {
id
name
slug
profile {
avatar
description
motto
}
owner {
nickname
visible
profile {
avatar
}
}
members {
role
member {
nickname
visible
profile {
avatar
}
}
}
}
}
}
}
`
export default GetTeamQuery
@@ -0,0 +1,38 @@
/* eslint-disable no-unused-vars */
import gql from 'graphql-tag'
export const GET_TEAMS_BY_OWNER = gql`
query teamsByOwnerQuery($authId: String!) {
teamsByOwner(ownerId: $authId) {
edges {
node {
id
name
slug
owner
status {
status
reason
createdAt
}
createdAt
profile {
avatar
description
motto
updatedAt
}
members {
role
member {
alias
authId
}
}
}
}
}
}
`
export default GET_TEAMS_BY_OWNER