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

Fix: Implement data aggregation for community node count (#53) #54

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

charanbhatia
Copy link

This pull request addresses issue #53 by implementing a new data aggregation feature for community node counts.

Changes made:

  • Added a new MongoDB aggregation query in graphql_server/mongodb_queries/community_node_count.js
  • Created a new GraphQL resolver in graphql_server/server.js for the community node count query
  • Updated the GraphQL schema in graphql_server/schema.js to include the new query type
  • Implemented a new D3.js visualization in visualisations/graphs/community_node_count_graph.js
  • Updated visualisations/index.html to include the new graph

To test:

  1. Run the GraphQL server and execute the new communityNodeCount query
  2. Open the visualization page and verify that the new community node count graph is displayed correctly

This PR closes #53.

Please review and let me know if any changes are needed.

#### Option 1: Using MongoDB Shell (mongosh)

```bash
mongosh mongodb+srv://databaseReader:[email protected]/
Copy link
Member

Choose a reason for hiding this comment

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

please do not publish secrets here!

Copy link
Member

Choose a reason for hiding this comment

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

Instead of publishing secrets and database connection strings, where usage could lead to potential high costs, we should show how to setup a mongodb via docker compose.

Copy link
Member

Choose a reason for hiding this comment

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

and of course show how to import data (we could provide a sample dataset)

For a more user-friendly interface, use MongoDB Compass with the same connection string:

```
mongodb+srv://databaseReader:[email protected]/
Copy link
Member

Choose a reason for hiding this comment

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

please do not publish secrets here!

@andibraeu
Copy link
Member

hey @charanbhatia thanks for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Documentation: how to add a new graph / contribute
3 participants