Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question about example #45

Open
iamfotx opened this issue Nov 1, 2021 · 1 comment
Open

Question about example #45

iamfotx opened this issue Nov 1, 2021 · 1 comment

Comments

@iamfotx
Copy link

iamfotx commented Nov 1, 2021

Hi,

How does it resolve the module variable here?

export const schema = buildSchema(module);

@nodkz
Copy link
Member

nodkz commented Nov 1, 2021

It's a global variable provided by NodeJS.
It helps to properly use nodejs' require logic for importing files from the schema folder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants