Javascript / Typescript
Using our Javascript & Typescript introspector is simple: two steps and Appear gets to work.
Last updated
Was this helpful?
Using our Javascript & Typescript introspector is simple: two steps and Appear gets to work.
Last updated
Was this helpful?
To do this, we expose a @appear.sh/introspector/hook
package that does this for you. The easiest way to use this is to modify your node
executable parameters.
For example:
Before: node build/server.js
After: node -r @appear.sh/introspector/hook build/server.js
Alternatively, if you have an entrypoint file that is run before requiring/importing your HTTP server dependency packages, calling Appear.init
will work fine.
To configure how the introspector reports your schemas to Appear, you can adjust in the file below.
If you have any queries or require support with the above instructions, please get in touch with us.