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
const expr = 'Papayas'; | |
// old way | |
switch (expr) { | |
case 'Oranges': | |
console.log('Oranges are $0.59 a pound.'); | |
break; | |
case 'Apples': | |
console.log('Apples are $0.32 a pound.'); | |
break; |
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 Review { | |
""" | |
The business that this review is about | |
""" | |
business: Business | |
} |
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 Review { | |
""" | |
ID of the business that this review is about | |
""" | |
businessId: Int | |
} |
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
Business { | |
# The name of the business (e.g. "The French Laundry") | |
name: String | |
"The rating of the business" | |
rating: Float | |
} |
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
Business { | |
""" | |
The name of the business (e.g. "The French Laundry") | |
""" | |
name: String | |
""" | |
The rating of the business | |
""" | |
rating: Float |
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 User { | |
"""The user's name""" | |
name: String! | |
"""The user's email""" | |
email: String! | |
"""The user's avatar""" | |
avatar: String | |
} |
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 User { | |
""" | |
The user's name. | |
""" | |
name: String! | |
""" | |
The user's email | |
""" | |
email: String! |
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 BusinessCard { | |
socialBusinessCard: [String]; | |
# etc. | |
} |
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 BusinessCard { | |
socials: [String] | |
# etc. | |
} |
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 Review { | |
""" | |
A photo that the user uploaded with this review | |
""" | |
uploadedPhoto: BusinessPhoto | |
""" | |
When was this review posted? | |
""" | |
createdAt: DateTime |
OlderNewer