Skip to content

How dataloaders work? #1898

Answered by Fil
Afganitia asked this question in Q&A
Discussion options

You must be logged in to vote

For 1., no: data loaders run at build time, and hence cannot depend on user actions.

For 2., I'm not sure I understand what you're trying to achieve; a JavaScript data loader can write json to stdout by calling something like:

process.stdout.write(JSON.stringify(value));

hope this helps

Replies: 1 comment

Comment options

Fil
Jan 9, 2025
Collaborator

You must be logged in to vote
0 replies
Answer selected by Afganitia
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants