API Reference > itwin-client > iTwinServiceClients > WsgClient > postQuery postQuery MethodProtected Used by clients to get strongly typed instances from standard WSG REST queries that return EC JSON instances. postQuery<T extends WsgInstance<T>>(requestContext: AuthorizedClientRequestContext, typedConstructor: () => T, relativeUrlPath: string, queryOptions: RequestQueryOptions, httpRequestOptions?: HttpRequestOptions): Promise<T[]> Parameter Type Description requestContext AuthorizedClientRequestContext typedConstructor () => T Constructor function for the type relativeUrlPath string Relative path to the REST resource. queryOptions RequestQueryOptions Query options. httpRequestOptions HttpRequestOptions Additional options for the HTTP request. Returns - Promise<T[]> Array of strongly typed instances. Defined in clients/itwin/src/WsgClient.ts Line 503 Last Updated: 12 June, 2024