API Reference > imodeljs-clients > 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>(requestContext: AuthorizedClientRequestContext, typedConstructor: { T }, relativeUrlPath: string, queryOptions: RequestQueryOptions): Promise<T extends WsgInstance[]> Parameter Type Description requestContext AuthorizedClientRequestContext typedConstructor { T } Constructor function for the type relativeUrlPath string Relative path to the REST resource. queryOptions RequestQueryOptions Query options. Returns - Promise<T extends WsgInstance[]> Array of strongly typed instances. Defined in core/clients/src/WsgClient.ts Line 504 Last Updated: 13 June, 2024