Skip to content

PabloSzx/test-graphql-esm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GraphQL API using pure ESM

This test example uses all libraries that have full support for ESM:

And using a republish of the GraphQL.js library https://npm.im/graphql called graphql-esm, which is full Node.js ESM with "type": "module". https://npm.im/graphql-esm.

This example also uses bob-tsm, which allows you to use TypeScript seemlesly, using esbuild behind the scenes.

graphql-esm

You can use graphql-esm setting your package.json graphql dependency like this:

{
  "dependencies": {
    "graphql": "npm:graphql-esm@^16.0.1"
  }
}

Install & Run

If you don´t have pnpm installed, you can do npm i -g pnpm

To install dependencies,

pnpm i

To run with watch mode

pnpm dev

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published