Created
September 22, 2023 02:41
-
-
Save mbroecheler/bd3ba8a8307fc36836a91599b9ff2643 to your computer and use it in GitHub Desktop.
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 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