Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import {
- GraphQLObjectType,
- GraphQLNonNull,
- GraphQLID,
- GraphQLString,
- } from 'graphql'
- const User = new GraphQLObjectType({
- name: 'User',
- description: '...',
- fields: () => ({
- userId: {
- type: new GraphQLNonNull(GraphQLID),
- description: '...'
- },
- firstName: {
- type: new GraphQLNonNull(GraphQLString),
- description: 'Users firstname'
- },
- lastName: {
- type: new GraphQLNonNull(GraphQLString),
- description: 'Users lastname'
- },
- email: {
- type: new GraphQLNonNull(GraphQlString),
- description: 'Users email'
- },
- position: {
- type: new GraphQLNonNull(GraphQlString),
- description: 'Positon of the user in the company'
- },
- password: {
- type: new GraphQLNonNull(GraphQLString),
- description: 'Login password for the user'
- },
- company: {
- type: new GraphQLNonNull(GraphQlString),
- description: 'Company the user belongs to'
- }
- })
- })
- export default User
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement