mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
add search groups to schema
This commit is contained in:
parent
51ce290195
commit
4f8ebebac3
@ -1,4 +1,4 @@
|
||||
union SearchResult = Post | User | Tag
|
||||
union SearchResult = Post | User | Tag | Group
|
||||
|
||||
type postSearchResults {
|
||||
postCount: Int
|
||||
@ -15,9 +15,15 @@ type hashtagSearchResults {
|
||||
hashtags: [Tag]!
|
||||
}
|
||||
|
||||
type groupSearchResults {
|
||||
groupCount: Int
|
||||
groups: [Group]!
|
||||
}
|
||||
|
||||
type Query {
|
||||
searchPosts(query: String!, firstPosts: Int, postsOffset: Int): postSearchResults!
|
||||
searchUsers(query: String!, firstUsers: Int, usersOffset: Int): userSearchResults!
|
||||
searchGroups(query: String!, firstGroups: Int, groupsOffset: Int): groupSearchResults!
|
||||
searchHashtags(query: String!, firstHashtags: Int, hashtagsOffset: Int): hashtagSearchResults!
|
||||
searchResults(query: String!, limit: Int = 5): [SearchResult]!
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user