Skip to content

Instantly share code, notes, and snippets.

@jtomchak
Created August 5, 2021 21:10
Show Gist options
  • Save jtomchak/3daa4a6015bc316b15e3bd36e7b56bf2 to your computer and use it in GitHub Desktop.
Save jtomchak/3daa4a6015bc316b15e3bd36e7b56bf2 to your computer and use it in GitHub Desktop.
What we're sort of looking for
input AttendeesFilter {
email: EmailAddress
firstName: String
lastName: String
}
input Pagination {
cursor: String
perPage: Int
}
type Speaker {
id: ID!
name: String!
sessions: [Session]
relatedSessions: [Session]
}
type Session {
id: ID!
name: String!
speakers: [Speaker]
relatedSessions: [Session]
}
type Query {
attendees(filters: AttendeesFilter, pagination: Pagination): AttendeeConnection
attendee(id: ID, email: EmailAddress): Attendee
speakers(filters: SpeakersFilter, pagination: Pagination): SpeakerConnection
speaker(id: ID!): Speaker
sessions(filters: SessionsFilter, pagination: Pagination): SessionConnection
session(id: ID!): Session
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment