Skip to content

Example to showcase simple NodeJS typescript demo to connect preconfigured trino client with apollo federation

License

Notifications You must be signed in to change notification settings

Muthukumaran-G/How-to-connect-trino-with-apollo-federation-in-nodeJS-typescript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How-to-connect-trino-with-apollo-federation-in-nodeJS-typescript

Example to showcase simple NodeJS typescript demo to connect preconfigured trino client with apollo federation

Step 1: Configure database in ..trino-pgsql/etc/catalog.

Step 2: Start trino server from docker.

cmd ..apolloFedTrinoTS/trino-pgsql

docker-compose up -d

Check health: To check whether trino server is running(In status should show 'Healthy'):

docker ps

Step 3: Install NPM dependencies.

npm install

Step 4: Start subgraph servers.

npm run compile ; node ./dist/department.js

npm run compile ; node ./dist/employee.js

Step 5: Start supergraph server.

npm run compile ; node ./dist/index.js

Step 6: Check the supergraph running server.

http://localhost:4000/

About

Example to showcase simple NodeJS typescript demo to connect preconfigured trino client with apollo federation

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published