Это файл myposgres.sql в каталоге моего проекта:
CREATE TABLE client (
cli_id serial PRIMARY KEY,
cli_name text NOT NULL,
cli_birthyear smallint NOT NULL
);
CREATE TABLE product (
pro_id serial PRIMARY KEY,
pro_ean text UNIQUE NOT NULL,
pro_name text NOT NULL,
pro_description text NOT NULL,
pro_weight_g smallint NOT NULL
);
CREATE TABLE command (
com_id serial PRIMARY KEY,
com_number text UNIQUE NOT NULL,
cli_id integer NOT NULL REFERENCES client
);
CREATE TABLE command_line (
lin_id serial PRIMARY KEY,
com_id integer NOT NULL REFERENCES command,
pro_id integer NOT NULL REFERENCES product,
lin_quantity smallint NOT NULL
);
Теперь, как мне использовать этот файл для connect the postges database to graphql? А как запросить базу данных postgres с помощью graphql?
Возможный дубликат Как связать GraphQL и PostgreSQL





Для этого вам нужно написать программу. GraphQL и SQL - разные вещи, и PostgreSQL не (и не должен) предоставлять интерфейс GraphQL для своего хранилища данных.