Skip to content

Commit

Permalink
Fix the embedded mode example. (#474)
Browse files Browse the repository at this point in the history
Remove keyword desc.

Based on Arango keywords.

https://www.arangodb.com/docs/3.6/aql/fundamentals-syntax.html#keywords

Also fix static-page.fql example
  • Loading branch information
jbampton authored Apr 20, 2020
1 parent 73abfd8 commit eae2b01
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -258,11 +258,11 @@ func getTopTenTrendingTopics() ([]*Topic, error) {
LIMIT 10
LET url = ELEMENT(el, "a")
LET name = ELEMENT(el, ".f3")
LET desc = ELEMENT(el, ".f5")
LET description = ELEMENT(el, ".f5")
RETURN {
name: TRIM(name.innerText),
description: TRIM(desc.innerText),
description: TRIM(description.innerText),
url: "https://github.com" + url.attributes.href
}
`
Expand Down
4 changes: 2 additions & 2 deletions examples/embedded.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ func getTopTenTrendingTopics() ([]*Topic, error) {
LIMIT 10
LET url = ELEMENT(el, "a")
LET name = ELEMENT(el, ".f3")
LET desc = ELEMENT(el, ".f5")
LET description = ELEMENT(el, ".f5")
RETURN {
name: TRIM(name.innerText),
description: TRIM(desc.innerText),
description: TRIM(description.innerText),
url: "https://github.com" + url.attributes.href
}
`
Expand Down
4 changes: 2 additions & 2 deletions examples/static-page.fql
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ FOR el IN ELEMENTS(doc, ".py-4.border-bottom")
LIMIT 10
LET url = ELEMENT(el, "a")
LET name = ELEMENT(el, ".f3")
LET desc = ELEMENT(el, ".f5")
LET description = ELEMENT(el, ".f5")

RETURN {
name: TRIM(name.innerText),
description: TRIM(desc.innerText),
description: TRIM(description.innerText),
url: "https://github.com" + url.attributes.href
}

0 comments on commit eae2b01

Please sign in to comment.