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

docs: add minimal example in the readme #307

Merged
merged 5 commits into from
Jan 31, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update README.md
  • Loading branch information
haoxins committed Jan 23, 2024
commit 6a5bc536729abc21e6797a5358745df7e9f1bdef
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,10 @@ func main() {
sessionPool, err := nebula.NewSessionPool(*config, nebula.DefaultLogger{})

query := `GO FROM 'Bob' OVER like YIELD
$^.person.name AS name,
$^.person.age AS age,
like.likeness AS likeness
`
$^.person.name AS name,
$^.person.age AS age,
like.likeness AS likeness`

resultSet, err := sessionPool.Execute(query)
if err != nil {
panic(err)
Expand Down
Loading