-
-
Save DanyF-github/67155a90b9e043fcd357aa35e3e0e524 to your computer and use it in GitHub Desktop.
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
// server/src/resolvers.js | |
const { | |
..., | |
// here we reference the startSession function we have just created | |
videoApi: { joinSession, startSession }, | |
} = require('./graphql'); | |
... | |
const resolvers = { | |
... | |
Mutation: { | |
... | |
// here we assign that function as the resolver for the startVideocallSession mutation | |
startVideocallSession: startSession, | |
... | |
}, | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment