Last active
October 5, 2017 19:05
-
-
Save a7v8x/7bf63408c4e2fb50d9177b0406d97983 to your computer and use it in GitHub Desktop.
This file contains 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 { | |
GraphQLString, | |
GraphQLID, | |
GraphQLObjectType, | |
GraphQLNonNull, | |
} from 'graphql'; | |
const UserType = new GraphQLObjectType({ | |
name: 'User', | |
description: 'User type definition', | |
fields: () => ({ | |
id: { | |
type: new GraphQLNonNull(GraphQLID), | |
}, | |
username: { | |
type: new GraphQLNonNull(GraphQLString), | |
}, | |
email: { | |
type: GraphQLString, | |
}, | |
phone: { | |
type: GraphQLString, | |
}, | |
firstName: { | |
type: GraphQLString, | |
}, | |
lastName: { | |
type: GraphQLString, | |
}, | |
}), | |
}); | |
export { | |
UserType as default | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment