Skip to content

Instantly share code, notes, and snippets.

View Yusfuu's full-sized avatar
👋
🌍

Youssef HAJJARI Yusfuu

👋
🌍
View GitHub Profile
interface Profile {
id: ID!
name: String!
}
type User implements Profile {
id: ID!
name: String!
age: Int!
}
type Character {
id: ID!
name: String!
appearsIn: [Episode!]!
}
enum Episode {
NEWHOPE
EMPIRE
JEDI
type Review {
"""
A photo that the user uploaded with this review
"""
uploadedPhoto: BusinessPhoto
"""
When was this review posted?
"""
createdAt: DateTime
type BusinessCard {
socials: [String]
# etc.
}
type BusinessCard {
socialBusinessCard: [String];
# etc.
}
type User {
"""
The user's name.
"""
name: String!
"""
The user's email
"""
email: String!
type User {
"""The user's name"""
name: String!
"""The user's email"""
email: String!
"""The user's avatar"""
avatar: String
}
Business {
"""
The name of the business (e.g. "The French Laundry")
"""
name: String
"""
The rating of the business
"""
rating: Float
Business {
# The name of the business (e.g. "The French Laundry")
name: String
"The rating of the business"
rating: Float
}
type Review {
"""
ID of the business that this review is about
"""
businessId: Int
}