Skip to content

Instantly share code, notes, and snippets.

@DavyBello
Last active January 22, 2019 21:20
Show Gist options
  • Save DavyBello/f298934aaf09b6fc2e19b087a9a67697 to your computer and use it in GitHub Desktop.
Save DavyBello/f298934aaf09b6fc2e19b087a9a67697 to your computer and use it in GitHub Desktop.
graphql-social-auth Tutorial
// The GraphQL schema
const { gql } = require('apollo-server');
module.exports = gql`
type AuthResponse {
token: String
name: String
}
input AuthInput {
accessToken: String!
}
type Query {
"A simple type for getting started!"
hello: String
}
type Mutation {
authFacebook(input: AuthInput!): AuthResponse
authGoogle(input: AuthInput!): AuthResponse
}
`;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment