Using "useRegExpForFields" makes the docs spin and queries don't go through. #1965
Unanswered
Davenporten
asked this question in
Q&A
Replies: 1 comment 5 replies
-
Your config looks right. The only thing I can clearly see is that you need to pick up a mode for the transform, effectively choosing either "bare" or "wrap". As such I suggest removing this line completely For more info, take a look at the docs here: |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
My gut reaction to the following problem was to report a bug, but after seeing that other people seem to be using the
useRegExpForFields
without a problem I thought maybe I was just missing something in my.meshrc.yaml
. So here's the situation: I have two different graphql API that I have my meshrc is pointing to. I want to transform each query to havequery_
appended to the beginning of queries that come in from the API (I know there is a prefix transform, but that 1) is more general than I need, and 2) this is kind of an example, my problem is that I can't get the regex renaming to work). To do this I have the following in my mechrc:The
to
field regex is probably wrong (is this the issue?), I've just been going off of what is in the example in the docs: https://www.graphql-mesh.com/docs/transforms/rename#how-to-useWhen I run this though the docs spin forever

and autocomplete for the queries field doesn't work anymore. Maybe it's just running the regex still? If that's the case I still haven't seen it end.
Anyway, any thoughts or direction on this would be much appreciated. Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions