Created
March 2, 2019 20:05
-
-
Save rodrwan/588e4f904de36c2a90ab29602d476cc8 to your computer and use it in GitHub Desktop.
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
type User { | |
id: ID! | |
email: String! | |
first_name: String! | |
last_name: String! | |
phone: String! | |
birthdate: Time! | |
address: Address! | |
} | |
type Address { | |
user_id: String! | |
address_line: String! | |
city: String! | |
locality: String! | |
region: String! | |
country: String! | |
postal_code: Int! | |
} | |
input AddressData { | |
address_line: String! | |
city: String! | |
locality: String! | |
region: String! | |
country: String! | |
postal_code: Int! | |
} | |
input UserData { | |
email: String! | |
first_name: String! | |
last_name: String! | |
phone: String! | |
birthdate: Time! | |
address: AddressData! | |
} | |
type Query { | |
users: [User]! | |
user(id: ID!): User! | |
} | |
type Mutation { | |
createUser(input: UserData): User | |
} | |
scalar Time |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment