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

Replace derive API with functional API #114

Merged
merged 64 commits into from
Mar 31, 2023
Merged

Replace derive API with functional API #114

merged 64 commits into from
Mar 31, 2023

Conversation

karatakis
Copy link
Collaborator

@karatakis karatakis commented Jan 10, 2023

PR Info

Maintaining the derive API is not very convenient. With this update we replace the derive API with a functional API.

New Features

  • Functional API
  • Support for chrono and time types
  • All string type operations
  • has_one relations are supported
  • Guards
  • Field renames
  • Support for relations with middle table (n:m relations)

Improvements

  • Relationships
  • Self Relationships

Breaking Changes

  • Derive API is removed
  • Decoupled seaography from sea-orm-cli generator
  • Dataloader optimizations are left out due to complexity (at the moment)
  • Some renames in Connection node fields, and pagination filtering
  • Some changes on the generated GraphQL schema

Closes

@karatakis karatakis mentioned this pull request Jan 16, 2023
@karatakis
Copy link
Collaborator Author

@tyt2y3 @billy1624, its ready to review

I noticed some great points we can improve SeaORM to make it even more dynamic

@karatakis karatakis requested review from billy1624 and tyt2y3 March 30, 2023 21:57
@tyt2y3
Copy link
Member

tyt2y3 commented Mar 31, 2023

As discussed, let's merge this, but not release it yet. We will see how we can cleanup query_root.rs .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
3 participants