Solidify Dash Panel Queries and Mutations

This commit is contained in:
Barry Low committed 2018-09-17 12:38:42 -07:00
1 parent ea2a1c0734
commit 5b521b3620
6 files changed
+27 -17

No files matched your search

+1 -1
View File
@@ -58,7 +58,7 @@ const resolvers = {
},
async teamsByOwner(parent, { ownerId }, ctx, info) {
console.log('teamsByOwner: ', ctx.user)
return ctx.db.query.teams({where: { owner: ownerId }}, TEAMS_FRAGMENT)
return ctx.db.query.teams({where: { owner: ownerId }, orderBy:'updatedAt_DESC'}, TEAMS_FRAGMENT)
},
async owner(parent, args, ctx, info) {
console.log('resolver.query.owner ctx: ', ctxMember(ctx))