Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Reichenbachian authored and jifalops committed Mar 4, 2024
1 parent 2a7ac30 commit 63780cb
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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");
```
Expand Down Expand Up @@ -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");
Expand Down

0 comments on commit 63780cb

Please sign in to comment.