query one works just fine when using view: viewDerivative(filter: {langcode: "en"}) { (notice the hardcoded string for the language code).
query two does not work when using view: viewDerivative(filter: {langcode: $langcode}) { (notice that here I'm using the variable.
query three also works fine when using three: postsGraphql1View(filter: {langcode: $langcode}) { (here I'm using a variable but using the Query directly.
I already tried using contextualFilter instead of filter and the same behaviour happens.
Is there any workaround for this kind of scenario?
Hi all,
First of all thanks for this really powerful module!!
I believe there is a bug on how the
viewDerivative
process theViewsFilterInput
.Sample gql:
and here is the view:
one
works just fine when usingview: viewDerivative(filter: {langcode: "en"}) {
(notice the hardcoded string for the language code).two
does not work when usingview: viewDerivative(filter: {langcode: $langcode}) {
(notice that here I'm using the variable.three
also works fine when usingthree: postsGraphql1View(filter: {langcode: $langcode}) {
(here I'm using a variable but using the Query directly.I already tried using
contextualFilter
instead offilter
and the same behaviour happens.Is there any workaround for this kind of scenario?
Thanks in advance!