Created
July 20, 2019 18:14
-
-
Save grantnorwood/3701c1bcf8f35a93a9cea735081d459a 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
type Query { | |
vacationRentalById(id: $id) : VacationRental | |
} | |
type VacationRental { | |
id: ID! | |
title: String | |
description: String | |
owner: Owner! | |
roomCount: Int | |
address: Address | |
geolocation: GeoLocation | |
price: Price | |
} | |
type Owner { | |
name: String! | |
email: String! | |
phone: String! | |
twitterHandle: String | |
inboxNotifications: [Notification] | |
} | |
type Address { | |
line1: String! | |
line2: String | |
city: String! | |
state: String! | |
zip: String! | |
} | |
type Price { | |
amount: Float! | |
currency: String! | |
} | |
type GeoLocation { | |
latitude: String! | |
longitude: String! | |
} | |
type Notification { | |
timestamp: String! | |
message: String! | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment