You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm tinkering a generator which needs to import another file. However, since the generated file can be located next to the graphql file, the import cannot be static, but relative to the graphql file the generated file is next to. How to get that? If i've understood correctly, getImports method of ClientSideBaseVisitor does not have access to such information.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm tinkering a generator which needs to import another file. However, since the generated file can be located next to the graphql file, the import cannot be static, but relative to the graphql file the generated file is next to. How to get that? If i've understood correctly,
getImports
method ofClientSideBaseVisitor
does not have access to such information.Beta Was this translation helpful? Give feedback.
All reactions