phx-node
Version:
PHX NODE
15 lines (14 loc) • 609 B
TypeScript
import { HttpService } from "@nestjs/axios";
import { QueryOrPersistedId } from "./types";
export type GrpcRequestType = QueryOrPersistedId & {
variables?: Record<string, any> | null | undefined;
};
export declare class PHXGrpcClientService {
private readonly httpService;
private readonly request;
private readonly internalGrpcGateway;
private readonly projectSource;
constructor(httpService: HttpService, request: Request);
query({ query, variables, persistedId }: GrpcRequestType): Promise<any>;
mutation({ query, variables, persistedId }: GrpcRequestType): Promise<any>;
}