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

Add other methods to the database connector files #6

Closed
escottalexander opened this issue Jun 10, 2024 · 2 comments
Closed

Add other methods to the database connector files #6

escottalexander opened this issue Jun 10, 2024 · 2 comments
Assignees

Comments

@escottalexander
Copy link
Collaborator

in packages/nextjs/services/database/ there are the following files:

metrics.ts
projects.ts
totalsByDate.ts
projectTotalsByDate.ts

One for each collection.
They currently each have a method for reading data from the collection but we will also need to write whole records to each collection.

This issue is for adding a method to each of those files that writes whole entries to each collection. If you are unfamiliar with firebase you can view a recent project that uses the same setup here: https://github.com/BuidlGuidl/grants.buidlguidl.com

We will add more methods to these files as it becomes clear which methods are useful but for now it would be nice to simply have write methods.

@escottalexander escottalexander self-assigned this Jun 11, 2024
@escottalexander
Copy link
Collaborator Author

This will need heavier revision with the realization that OSO will be providing timestamped data.

@escottalexander
Copy link
Collaborator Author

@blahkheart Knocked this out in #11

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

No branches or pull requests

1 participant