cassandra-data-apis icon indicating copy to clipboard operation
cassandra-data-apis copied to clipboard

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

Open mpenick opened this issue 5 years ago • 1 comments

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 avatar Apr 16 '20 18:04 mpenick

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

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

jorgebay avatar Apr 17 '20 09:04 jorgebay