0
query QueryEntries($section: [String]) {
  entries(section: $section) {
    id
  }
}

Result

 {   "data": {
     "entries": [
       {
          "id": "369"
       },
       {
         "id": "278"
       },
       {
         "id": "263"
       },
       {
         "id": "244"
       },
       {
         "id": "233"
       }
     ]   } }

How to put in QueryTags (variable Entries)?

 {% set query %} 
  query QueryTags($EntriesID: [Int]) {   
   tags(relatedTo: $EntriesID) {
     id
     title   
  } } 
{% endset %}



{% set Tags= gql(query) %}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.