Last active
January 22, 2019 21:20
-
-
Save DavyBello/f298934aaf09b6fc2e19b087a9a67697 to your computer and use it in GitHub Desktop.
graphql-social-auth Tutorial
This file contains hidden or 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
// 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