Skip to content

Instantly share code, notes, and snippets.

@knrt10
Created December 27, 2018 06:22
Show Gist options
  • Select an option

  • Save knrt10/0bdfd08e6d56e9e496b50c5c91e992d6 to your computer and use it in GitHub Desktop.

Select an option

Save knrt10/0bdfd08e6d56e9e496b50c5c91e992d6 to your computer and use it in GitHub Desktop.
This is schema for user logging
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