API Reference > imodelhub-client > iModelHubClient > StringIdQuery > byId byId Method Query single instance by its id. byId(id: string): StringIdQuery 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 - StringIdQuery This query. Defined in clients/imodelhub/src/imodelhub/HubQuery.ts Line 26 Last Updated: 12 June, 2024