query search($searchData: SearchInput!) {
search(searchData: $searchData) {
contributorResults {
id
score
terms
type
... on SearchResultUser {
...SearchResultUser
__typename
}
... on SearchResultOrganization {
...SearchResultOrganization
__typename
}
__typename
}
contributorResultsCount
}
}
fragment VisualUri on Visual {
id
uri
name
__typename
}
fragment SearchResultUser on SearchResultUser {
user {
id
nameID
profile {
...SearchResultProfile
typename
}
typename
}
__typename
}
fragment SearchResultProfile on Profile {
id
displayName
location {
id
country
city
typename
}
tagsets {
id
tags
typename
}
visuals {
...VisualUri
typename
}
typename
}
fragment SearchResultOrganization on SearchResultOrganization {
organization {
id
nameID
profile {
...SearchResultProfile
typename
}
typename
}
__typename
}
3. The result returns users, but not organizations that are members of the hub
![image.png](https://images.zenhubusercontent.com/5f5ff9fd50a1a94a1f25f32c/2db21469-0081-4bf8-81a3-a267ebf47adf)
**Expected behavior**
When Organization is member of a hub and search with filtered hub is applied, the memberOrganizations must be returned.
Not sure for Host Organizations and organizations members/leads of child challenge opportunities???
Describe the bug A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior:
Perform the following query:
fragment VisualUri on Visual { id uri name __typename }
fragment SearchResultUser on SearchResultUser { user { id nameID profile { ...SearchResultProfile typename } typename } __typename }
fragment SearchResultProfile on Profile { id displayName location { id country city typename } tagsets { id tags typename } visuals { ...VisualUri typename } typename }
fragment SearchResultOrganization on SearchResultOrganization { organization { id nameID profile { ...SearchResultProfile typename } typename } __typename }
{ "searchData": { "terms": [ "world", "admin" ], "tagsetNames": [ "skills", "keywords" ], "typesFilter": [ "hub", "opportunity", "challenge", "card", "user", "organization" ], "searchInHubFilter": "un-sdgs" } }