-
Notifications
You must be signed in to change notification settings - Fork 2
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
[CZID-8379] Mutations for creating entities #32
[CZID-8379] Mutations for creating entities #32
Conversation
Oups, just realized I forgot to define and use Cerbos policies for this |
…mics into raboukhalil/CZID-8379-creation-mutations # Conflicts: # entities/api/main.py
… on the collection
session.add(new_entity) | ||
await session.commit() | ||
|
||
# Return GQL object to client (FIXME: is there a better way to convert `new_entity` to `gql_type`?) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ohhh, interesting - I think we're relying on strawberry_sqlalchemy_mapper to do this for us in the queries. I wonder if we can leverage the types it's already generated to do this automatically 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
w00!
Add GQL mutation for creating samples