Vyhledavani v POI
This commit is contained in:
@@ -21,10 +21,11 @@ class PointOfInterestQueries:
|
||||
async def points_of_interest(
|
||||
root, info,
|
||||
limit: int, offset: int = 0,
|
||||
search: Optional[str] = None,
|
||||
public: bool = False
|
||||
) -> PaginationWindow[PointOfInterest]:
|
||||
query = BaseQueryResolver(PointOfInterest, models.PointOfInterest).get_query(
|
||||
info.context.user_id, only_public=public
|
||||
info.context.user_id, only_public=public, search=search,
|
||||
)
|
||||
return await get_pagination_window(
|
||||
query=query,
|
||||
|
||||
Reference in New Issue
Block a user