Skip to content

Instantly share code, notes, and snippets.

@mbroecheler
Created September 22, 2023 02:41
Show Gist options
  • Save mbroecheler/bd3ba8a8307fc36836a91599b9ff2643 to your computer and use it in GitHub Desktop.
Save mbroecheler/bd3ba8a8307fc36836a91599b9ff2643 to your computer and use it in GitHub Desktop.
type Query {
Events(limit: Int!, offset: Int = 0): [Events!]!
EventsLiked(userid: String!): [EventsLiked!]!
RecommendedEvents(userid: String!): [RecommendedEvents!]
PersonalizedEventSearch(query: String!, userid: String!): [PersonalizedEventSearch!]
}
interface AbstractEvents {
id : Int!
date: String!
time : String!
location: String!
title : String!
abstract : String!
url : String!
startTimestamp : String!
}
type speakers {
name : String!
title: String
company: String
}
type LikeCount {
num : Int
}
type Events implements AbstractEvents{
id : Int!
date: String!
time : String!
location: String!
title : String!
abstract : String!
url : String!
startTimestamp : String!
speakers : [speakers!]
}
type RecommendedEvents implements AbstractEvents{
id : Int!
date: String!
time : String!
location: String!
title : String!
abstract : String!
url : String!
startTimestamp : String!
score: Float!
}
type PersonalizedEventSearch implements AbstractEvents{
id : Int!
date: String!
time : String!
location: String!
title : String!
abstract : String!
url : String!
startTimestamp : String!
score: Float!
}
type EventsLiked implements AbstractEvents{
id : Int!
date: String!
time : String!
location: String!
title : String!
abstract : String!
url : String!
startTimestamp : String!
}
type Mutation {
Likes(liked: LikedInput!): LikeAdded
AddInterest(interest: AddInterest!): InterestAdded
}
input AddInterest {
text: String!
userid: String!
}
type InterestAdded {
_source_time: String!
userid: String!
}
input LikedInput {
eventId: Int!
userid: String!
liked: Boolean!
}
type LikeAdded {
_source_time: String!
userid: String!
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment