Skip to content

Instantly share code, notes, and snippets.

@rodrwan
Created March 2, 2019 20:05
Show Gist options
  • Save rodrwan/588e4f904de36c2a90ab29602d476cc8 to your computer and use it in GitHub Desktop.
Save rodrwan/588e4f904de36c2a90ab29602d476cc8 to your computer and use it in GitHub Desktop.
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