Created
February 22, 2021 17:03
-
-
Save antoniomesquita09/b81d5148664d95b4df79ec876ebfda6c to your computer and use it in GitHub Desktop.
Global resolver
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const user = require('./user/resolver'); | |
const room = require('./room/resolver'); | |
const message = require('./message/resolver'); | |
const query = { | |
Query: { | |
...user.Query, | |
...room.Query, | |
...message.Query, | |
}, | |
}; | |
const mutation = { | |
Mutation: { | |
...user.Mutation, | |
...room.Mutation, | |
...message.Mutation, | |
}, | |
}; | |
const subscription = { | |
Subscription: { | |
...message.Subscription, | |
}, | |
}; | |
module.exports = { | |
...user, | |
...message, | |
...room, | |
...query, | |
...mutation, | |
...subscription, | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment