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
interface Profile { | |
id: ID! | |
name: String! | |
} | |
type User implements Profile { | |
id: ID! | |
name: String! | |
age: 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
type Character { | |
id: ID! | |
name: String! | |
appearsIn: [Episode!]! | |
} | |
enum Episode { | |
NEWHOPE | |
EMPIRE | |
JEDI |
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 |
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 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 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 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
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 Review { | |
""" | |
ID of the business that this review is about | |
""" | |
businessId: Int | |
} |
NewerOlder