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
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?
Thanks in advance!
The text was updated successfully, but these errors were encountered:
julpod
changed the title
viewDerivatives not understanding variables
viewDerivatives not understanding gql query variables
Jun 23, 2020
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!
The text was updated successfully, but these errors were encountered: