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

Create mutations #133

Merged
merged 38 commits into from
Oct 9, 2023
Merged

Create mutations #133

merged 38 commits into from
Oct 9, 2023

Conversation

karatakis
Copy link
Collaborator

@karatakis karatakis commented Apr 24, 2023

PR Info

Add support for create mutations

New Features

  • Create one mutation, return created entity
  • Create batch mutation, return created entities
  • Allow to overwrite entity field types by using builder configuration
  • Allow to overwrite entity field filter types by using builder configuration
  • Add entity_input module for creating an GraphQL Object schema from a SeaORM entity

Changes

  • Remove code duplication when mapping sea_orm to async_graphql types whenever possible
  • Refactor schema builder to make it simpler to add new features

* types_map used to map sea_orm <-> async_graphql
* update filter_input to use types_map
* simplify filter_input
* support most types
@karatakis karatakis marked this pull request as ready for review July 23, 2023 14:05
@karatakis karatakis marked this pull request as draft July 23, 2023 14:05
@karatakis karatakis changed the title WIP create_one mutation Create mutations Jul 26, 2023
@karatakis karatakis marked this pull request as ready for review July 26, 2023 15:14
@karatakis karatakis merged commit d9282e6 into main Oct 9, 2023
8 checks passed
@karatakis karatakis deleted the mutations-create branch October 10, 2023 21:28
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.

Future: create one/many mutations
1 participant