From 63780cbb809adfa4280f8f6746b6417a009f65f0 Mon Sep 17 00:00:00 2001 From: Alex Reichenbach Date: Mon, 4 Mar 2024 11:07:24 -0500 Subject: [PATCH] Update README.md Could be wrong, but aren't these supposed to be capitalized? Or is there an alias I didn't see somewhere. Either way, the import statements (if lowercase), would be useful --- lib/README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/README.md b/lib/README.md index 4bfe497..32caf08 100644 --- a/lib/README.md +++ b/lib/README.md @@ -49,7 +49,7 @@ query = person.add_values_to_params(query, None, StampMode::Create); ``` ```rust -#[relation] +#[derive(Clone, Debug, PartialEq, Relation)] struct Knows; assert_eq!(Knows::typename(), "KNOWS"); ``` @@ -148,12 +148,14 @@ This library takes the point of view that non-trivial queries should be managed None of those methods even take any arguments, with the exception of creating a relation, which needs to know if the start and end nodes it's between need created or already exist. ```rust -#[node] +use cypher_dto::{Node, Relation}; + +#[derive(Node)] Person { name: String, } -#[relation] +#[derive(Clone, Debug, PartialEq, Relation)] struct Knows; let alice = Person::new("Alice");