Created
March 30, 2020 01:51
-
-
Save cuongld2/124095bd20116829f65f6fb073ac1e91 to your computer and use it in GitHub Desktop.
Define graphql types
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
type Mutation{ | |
createUserInfo(input: CreateUserInfo!) : Boolean! | |
authenticateUserInfo(input: AuthenticateUserInfo!): JwtResponse! | |
createBlog(input: CreateBlog!) : Blog! | |
} | |
input CreateUserInfo{ | |
username: String! | |
password: String! | |
fullname: String! | |
} | |
input CreateBlog{ | |
title: String! | |
content: String! | |
} | |
input AuthenticateUserInfo{ | |
username: String! | |
password: String! | |
} | |
type JwtResponse{ | |
token: String! | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment