How to make graphql work on ObservableHQ?

113 Views Asked by At

I am using observablehq for playing around with the graphql js library.

However, I fail at importing it and observable complains about this module.

Any hint? Do we need to modify the library to make it observable friendly?

1

There are 1 best solutions below

0
On

Observable has a Module require debugger for these situations; given a module name, it can often find a way to make it work. E.g., for GraphQL, it suggests using Skypack, which works for me in a notebook:

graphql = import('https://cdn.skypack.dev/[email protected]')