API Reference > imodelhub-client > iModelHubClient > IModelQuery IModelQuery Class Query object for getting HubIModel instances. You can use this to modify the IModelsHandler.get results. Extends InstanceIdQuery Methods Name Description constructor(): IModelQuery byName(name: string): IModelQuery Query iModel by its name. byiModelType(iModelType: IModelType): IModelQuery Query iModel by its type. Inherited methods Name Inherited from Description byId(id: string): IModelQuery InstanceIdQuery Query single instance by its id. filter(filter: string): IModelQuery InstanceIdQuery Set filter to the specified filter string. orderBy(orderBy: string): IModelQuery InstanceIdQuery Set order for the query. pageSize(n: number): IModelQuery InstanceIdQuery Select all entries from the query by pages. select(select: string): IModelQuery InstanceIdQuery Set select to specified select string. skip(n: number): IModelQuery InstanceIdQuery Skip first entries in the query. top(n: number): IModelQuery InstanceIdQuery Select only top entries from the query. Inherited properties Name Type Inherited from Description _query Protected RequestQueryOptions InstanceIdQuery Defined in clients/imodelhub/src/imodelhub/iModels.ts Line 250 Last Updated: 11 June, 2024