Skip to content

Commit

Permalink
Merge 5ab2c1b into cff6ce5
Browse files Browse the repository at this point in the history
  • Loading branch information
wildan2711 committed Jun 13, 2020
2 parents cff6ce5 + 5ab2c1b commit d1405ea
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ type pagedResults struct {
}
}

result := &pagedResults{}
result := pagedResults{}

query := tx.
Query(
Expand All @@ -541,7 +541,10 @@ query := tx.
UID("result").
Query(`{ total: count(uid) }`),
).
Vars("getByName($name: string)", map[string]string{"$name": "wildan"}) // GraphQL query variables
Vars("getByName($name: string)", map[string]string{"$name": "wildan"}). // GraphQL query variables
Scan(&result) // run the query and unmarshal the result to the passed destination

fmt.Println(result) // should be populated
```

### Delete Helper
Expand Down

0 comments on commit d1405ea

Please sign in to comment.