API Reference > imodeljs-clients > iModelHubClient > StringIdQuery > byId byId Method Query single instance by its id. byId(id: string): this throws IModelHubClientError with IModelHubStatus.UndefinedArgumentError or IModelHubStatus.InvalidArgumentError if id is undefined or it is not a valid GuidString value. Parameter Type Description id string Id of the instance to query. Returns - this This query. Defined in core/clients/src/imodelhub/HubQuery.ts Line 27 Last Updated: 13 June, 2024