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

Consider auto-generating uuid and timeuuid partition/clustering key values for inserts #77

Open
mpenick opened this issue Apr 16, 2020 · 1 comment
Labels
discussion enhancement New feature or request post alpha Out of scope of the first alpha

Comments

@mpenick
Copy link
Contributor

mpenick commented Apr 16, 2020

When not provided to an insert maybe we could consider auto-generating uuid types for keys. It would provide similar functionality to uuid() and timeuuid(). The values could then be returned by the result.

@mpenick mpenick added enhancement New feature or request post alpha Out of scope of the first alpha discussion labels Apr 16, 2020
@jorgebay
Copy link
Contributor

I think we can leverage scalars and allow those functions as literals:

mutation {
  insertBooks(value: { id: "uuid()", title: "My book"}) {
    value { id, title }
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion enhancement New feature or request post alpha Out of scope of the first alpha
Projects
None yet
Development

No branches or pull requests

2 participants