diff --git a/api/src/graphql/resolvers/Query/Team.js b/api/src/graphql/resolvers/Query/Team.js index 100980423..783ce9c82 100644 --- a/api/src/graphql/resolvers/Query/Team.js +++ b/api/src/graphql/resolvers/Query/Team.js @@ -20,6 +20,8 @@ export const teamByName = async (parent, { name }, ctx, info) => { } export const teamBySlug= async (parent, { slug }, ctx, info) => { + logger.info('teamsBySlug') + logger.info(`slug: ${slug}`) return ctx.db.query.team({ where: { slug: slug } }, TEAMS_FRAGMENT) } diff --git a/api/src/graphql/resolvers/Query/index.js b/api/src/graphql/resolvers/Query/index.js index 5616f8cbb..c88d132c1 100644 --- a/api/src/graphql/resolvers/Query/index.js +++ b/api/src/graphql/resolvers/Query/index.js @@ -1,7 +1,7 @@ import { logger } from '../../../logger' import { member, owner } from './Member' -import { teams, teamById, teamByName, teamWithRole, teamsByOwner, teamsByRole } from './Team' +import { teams, teamById, teamByName, teamBySlug, teamWithRole, teamsByOwner, teamsByRole } from './Team' import{ fbByTeamMember } from './TeamMember' export const resolvers = { @@ -10,6 +10,7 @@ export const resolvers = { teams: (parent, arg, ctx, info) => teams(parent, arg, ctx, info), teamById: (parent, arg, ctx, info) => teamById(parent, arg, ctx, info), teamByName: (parent, arg, ctx, info) => teamByName(parent, arg, ctx, info), + teamBySlug: (parent, arg, ctx, info) => teamBySlug(parent, arg, ctx, info), teamWithRole: (parent, arg, ctx, info) => teamWithRole(parent, arg, ctx, info), teamsByOwner: (parent, arg, ctx, info) => teamsByOwner(parent, arg, ctx, info), teamsByRole: (parent, arg, ctx, info) => teamsByRole(parent, arg, ctx, info),