gql from graphql-tag    (in apollo client)?
                  
                  
                  
                  
                  
                  I have query below and I want to define a specific id as the variable
                  
                  
                  
                  
                  
                  gql`query ($id: Int, $page: Int, $perPage: Int, $search: String) {
                  
                  
                    Page(page: $page, perPage: $perPage) {
                  
                  
                      pageInfo {
                  
                  
                        total
                  
                  
                        currentPage
                  
                  
                        lastPage
                  
                  
                        hasNextPage
                  
                  
                        perPage
                  
                  
                      }
                  
                  
                      media(id: $id, search: $search) {
                  
                  
                        id
                  
                  
                        
                  
                  
                        title {
                  
                  
                          romaji
                  
                  
                        }
                  
                  
                      }
                  
                  
                    }
                  
                  
                  }`
                  
                  
                
Обсуждают сегодня