Solidify Dash Panel Queries and Mutations
This commit is contained in:
1 parent
ea2a1c0734
commit
5b521b3620
6 files changed
+27
-17
No files matched your search
+1
-1
@@ -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))
|
||||
|
||||
Reference in new issue
Block a user