Skip to content

Instantly share code, notes, and snippets.

@lincolnlemos
Last active March 22, 2023 22:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lincolnlemos/4d38e86f892e5ee2eb48f56ea2078e77 to your computer and use it in GitHub Desktop.
Save lincolnlemos/4d38e86f892e5ee2eb48f56ea2078e77 to your computer and use it in GitHub Desktop.
CEE - To date policies/jurisdictions GraphQL query
// Request URL: https://explorer-api.localenergycodes.com/api/graphql
{
policies_count: policies(
where: [{column: "exclude_in_report", value: "false"}]
count: "id"
orderBy: [{column: "count_total", order: "DESC"}]
) {
count_total
}
jurisdictions_count: policies(
where: [{column: "exclude_in_report", value: "false"}]
count: "jurisdiction_id"
orderBy: [{column: "count_total", order: "DESC"}]
) {
count_total
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment