Sha256: facbe866a4eeea01d28860a0a9b2403cb691d9d0a2a9b1431ed7bc62f01a03db

Contents?: true

Size: 1.27 KB

Versions: 10

Compression:

Stored size: 1.27 KB

Contents

import Fetcher from "src/decidim/decidim_awesome/awesome_map/api/fetcher";

export default class ProposalsFetcher extends Fetcher {
  constructor(controller) {
    super(controller);
    this.query = `query ($id: ID!, $after: String!) {
      component(id: $id) {
          id
          __typename
          ... on Proposals {
            proposals(first: 50, after: $after){
              pageInfo {
                hasNextPage
                endCursor
              }
              edges {
                node {
                  id
                  state
                  title {
                    translations {
                      text
                      locale
                    }
                  }
                  body {
                    translations {
                      text
                      locale
                    }
                  }
                  address
                  coordinates {
                    latitude
                    longitude
                  }
                  amendments {
                    emendation {
                      id
                    }
                  }
                  category {
                    id
                  }
                }
              }
            }
          }
        }
      }`;
  }
}

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
decidim-decidim_awesome-0.10.3 app/packs/src/decidim/decidim_awesome/awesome_map/api/proposals_fetcher.js
decidim-decidim_awesome-0.10.2 app/packs/src/decidim/decidim_awesome/awesome_map/api/proposals_fetcher.js
decidim-decidim_awesome-0.10.1 app/packs/src/decidim/decidim_awesome/awesome_map/api/proposals_fetcher.js
decidim-decidim_awesome-0.10.0 app/packs/src/decidim/decidim_awesome/awesome_map/api/proposals_fetcher.js
decidim-decidim_awesome-0.9.3 app/packs/src/decidim/decidim_awesome/awesome_map/api/proposals_fetcher.js
decidim-decidim_awesome-0.9.1 app/packs/src/decidim/decidim_awesome/awesome_map/api/proposals_fetcher.js
decidim-decidim_awesome-0.8.3 app/packs/src/decidim/decidim_awesome/awesome_map/api/proposals_fetcher.js
decidim-decidim_awesome-0.8.2 app/packs/src/decidim/decidim_awesome/awesome_map/api/proposals_fetcher.js
decidim-decidim_awesome-0.8.1 app/packs/src/decidim/decidim_awesome/awesome_map/api/proposals_fetcher.js
decidim-decidim_awesome-0.8.0 app/packs/src/decidim/decidim_awesome/awesome_map/api/proposals_fetcher.js