Created
December 27, 2018 06:22
-
-
Save knrt10/0bdfd08e6d56e9e496b50c5c91e992d6 to your computer and use it in GitHub Desktop.
This is schema for user logging
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
| import { GraphQLInputObjectType, GraphQLString } from "graphql"; | |
| // User input is getting input from user | |
| const UserInput = new GraphQLInputObjectType({ | |
| name: "UserInputLogin", | |
| fields: { | |
| username: { type: GraphQLString }, | |
| password: { type: GraphQLString }, | |
| }, | |
| }); | |
| export const userLoginSchema = { | |
| UserInput, | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment