Skip to content

Conversation

@tiankii
Copy link

@tiankii tiankii commented May 7, 2025

Summary

This pull request refactors the way contacts are handled in the system. Previously, contacts were stored as an embedded array within the Account document. This implementation migrates contact data into a dedicated Contact collection, allowing for more flexible and scalable contact management.

Changes Introduced

  • Created a new Contact Mongoose model and schema
  • Migrated existing embedded contacts from Account.contacts[] into the new Contact collection
  • Refactored the codebase to persist, update, and query contacts through the new Contact collection
  • Updated GraphQL types and resolvers to support contactCreate mutation
  • Added e2e for the contact flow
  • Removed the deprecated contacts field from the Account schema

@tiankii tiankii marked this pull request as ready for review May 14, 2025 22:33
@tiankii tiankii requested a review from dolcalmi July 1, 2025 23:14
Copy link

@dolcalmi dolcalmi left a comment

Choose a reason for hiding this comment

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

looks good, just minor changes

@tiankii tiankii requested a review from dolcalmi July 3, 2025 03:17
@esaugomez31
Copy link

@dolcalmi The e2e and integration tests should be run again, because the failures do not seem to be related to the PR

@tiankii tiankii force-pushed the feat--save-ln-address-as-contact branch from c6c316b to 84525cd Compare July 17, 2025 17:34
@tiankii tiankii requested a review from dolcalmi July 17, 2025 17:52
@dolcalmi dolcalmi requested a review from esaugomez31 July 23, 2025 01:14
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.

3 participants