Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/donation report queries #694

Merged
merged 5 commits into from
Oct 24, 2022

Conversation

CarlosQ96
Copy link
Collaborator

@CarlosQ96 CarlosQ96 commented Oct 19, 2022

Related to: Giveth/GIVeconomy#729
Queries for a report dashboard.

export const fetchNewProjectsPerDate = `
  query (
    $fromDate: String
    $toDate: String
  ) {
    projectsPerDate(
      fromDate: $fromDate
      toDate: $toDate
    )
  }
`;

export const fetchTotalDonationsPerCategoryPerDate = `
  query {
    totalDonationsPerCategory {
      id
      title
      slug
      totalUsd
    }
  }
`;

export const fetchTotalDonors = `
  query (
    $fromDate: String
    $toDate: String
  ) {
    totalDonorsCountPerDate(
      fromDate: $fromDate
      toDate: $toDate
    )
  }
`;

export const fetchTotalDonationsUsdAmount = `
  query (
    $fromDate: String
    $toDate: String
  ) {
    donationsTotalUsdPerDate(
      fromDate: $fromDate
      toDate: $toDate
    )
  }
`;

@CarlosQ96 CarlosQ96 marked this pull request as draft October 19, 2022 06:40
@CarlosQ96 CarlosQ96 marked this pull request as ready for review October 24, 2022 07:54
@CarlosQ96
Copy link
Collaborator Author

Updated comments for @RamRamez

Copy link
Collaborator

@mohammadranjbarz mohammadranjbarz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @CarlosQ96
Seems good to me

@mohammadranjbarz mohammadranjbarz merged commit d062fee into staging Oct 24, 2022
@mohammadranjbarz
Copy link
Collaborator

Updated comments for @RamRamez

@RamRamez It's on staging now

@aminlatifi aminlatifi deleted the feature/donation_report_queries branch January 25, 2023 09:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants