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

feat: support default values for object create/update. #104

Open
wants to merge 2 commits into
base: jgadling/improvements
Choose a base branch
from

Conversation

jgadling
Copy link
Contributor

Sorry, this is stacked on top of the previous PR's.

This PR adds a few features:

  • Ability to add descriptions to fields in the schema, and have those descriptions exposed via the GQL API
  • Ability to add a skip_codegen annotation to a schema class or enum to have it omitted from the generated output
  • Ability to set default field values (either computed by the db or python callables) for db models

combo_field:
range: date
annotations:
default_sa_function: now()
Copy link
Collaborator

Choose a reason for hiding this comment

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

the behavior here would be that the default function is called on create and the update function is called on all updates?

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.

2 participants