Fix teamByName #55

This commit is contained in:
Barry Low committed 2018-11-07 08:52:59 -08:00
1 parent fcfc741dde
commit 7fa1c21092
1 file changed
+1 -1
+1 -1
View File
@@ -16,7 +16,7 @@ export const teamById = async (parent, { teamId }, ctx, info) => {
}
export const teamByName = async (parent, { name }, ctx, info) => {
return ctx.db.query.team({ where: { name: name } }, `{ name }`)
return ctx.db.query.team({ where: { name: name } }, TEAMS_FRAGMENT)
}
export const teamWithRole = async (parent, { teamId, role }, ctx, info) => {