Skip to content

Instantly share code, notes, and snippets.

@DanyF-github
Created January 8, 2021 10:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DanyF-github/67155a90b9e043fcd357aa35e3e0e524 to your computer and use it in GitHub Desktop.
Save DanyF-github/67155a90b9e043fcd357aa35e3e0e524 to your computer and use it in GitHub Desktop.
// 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