This repository was archived by the owner on Sep 27, 2023. It is now read-only.
This repository was archived by the owner on Sep 27, 2023. It is now read-only.
Include devOnlyAssignments
in the generated module #93
Open
Description
It would be nice to be able to use devOnlyAssignments
(https://github.com/facebook/relay/blob/f8585ab4f90f2e707d5555c9f7b423de3ea553bd/packages/relay-compiler/language/RelayLanguagePluginInterface.js#L176) to provide the text in dev when using persisted queries.
With my current setup it would make working non-local backends easier since there is no need to upload persisted queries every time queries change when developing.
I was able to hack my local version to produce this:
if (__DEV__) {
(node as any).params.text = "query ...";
}
I guess we could add a flag to enable this and configure the if dev check or maybe just use process.env.NODE_ENV
.
Metadata
Metadata
Assignees
Labels
No labels