![]() The default clustering order is ASC, or ascending.īook: "author_idx", target: VALUES) creates an index of the list of author names, This directive must be used for each field that is a clustering column. Note the comma-separated items in renaming is not required.īook: ASC) sets the field to a clustering column in the underlying database table. Information about partition keys and clustering keys can be found in theīook: true, name: "book_title") also sets the field name to anĪlternate value that is CQL-friendly. ID, Uuid, or TimeUuid, then that field is used as the partition key in the database. IMPORTANT: If no field has a partitionKey: true, but the first field is of data type This directive must be used for each field that comprises the partition key. Not required but strongly suggested to make writing queries and mutations easier.īook: true) sets the field to a partition key in the underlying database table. In the GraphQL schema, without duplicating the object type in the schema. Stargate assigns primary key fields automatically as fields.įor other servers, the fields must be identified in a string, such as "title isbn").īook: "book") defines an alternate table name for the underlying database.Ĭassandra, Astra DB, and DataStax Enterprise all require double-quotes around table namesĬhanging the name to lowercase makes the object name both GraphQL-friendly ( Book) and CQL-friendly ( book).īook: generates a BookInput type with the same fields as the type Book Book: defines the fields that uniquely identify an object.
0 Comments
Leave a Reply. |