Skip to content
New issue

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

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

Already on GitHub? # to your account

Runtime option does not seem to do anything #85

Open
puchm opened this issue May 17, 2021 · 1 comment
Open

Runtime option does not seem to do anything #85

puchm opened this issue May 17, 2021 · 1 comment

Comments

@puchm
Copy link

puchm commented May 17, 2021

Hi,

what does the runtime option actually do? I tried it with runtime set to true and to false but it doesn't seem to change anything. The transpiled file has the schema definition embedded as a string both times. I would have expected a different result when it is true.

This is my schema:

type Query {
    test: String
}

This is the transpiled file, both when runtime is true and when it's false:

"use strict";

var test = "\r\n\r\ntype Query {\r\n    test: String\r\n}";

Importing at runtime could be great for hot reloading in development environments.

Can you explain why it is the same both times?

Thanks for your help.
-Moritz

@terion-name
Copy link

same here. and it is inlined as text instead of ast :(

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

No branches or pull requests

2 participants