Skip to content

Conversation

@TyHil
Copy link
Member

@TyHil TyHil commented Feb 17, 2025

Uploads Astra data to MongoDB in the same format as coursebook events in UTDNebula/nebula-api#247. See the astra collection in the dev db.

The InsertMany method does add an _id field and idk if that's necessary since the dates are unique but I couldn't figure out how to not include it.

@TyHil TyHil requested a review from jpahm February 18, 2025 23:49
@jpahm
Copy link
Contributor

jpahm commented Feb 22, 2025

The InsertMany method does add an _id field and idk if that's necessary since the dates are unique but I couldn't figure out how to not include it.

That's perfectly fine -- MongoDB mandates that all documents have an _id field and will just auto-generate an ObjectID for it if nothing else is provided. You can actually substitute this for any data type you want, but we don't really need to specify our own keys for the moment.

@jpahm jpahm merged commit 5d38090 into develop Feb 22, 2025
2 checks passed
@jpahm jpahm deleted the astra-uploader branch February 22, 2025 22:10
@jpahm jpahm mentioned this pull request Feb 22, 2025
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.

3 participants