Skip to content

Commit 1f48156

Browse files
kbazsiJasonStoltz
authored andcommitted
Updated README
- the link to the FETCH_API documentation misses the last I (capital i) - the Query Suggestion example declares the `options` variable but does not use it
1 parent a4221f8 commit 1f48156

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

README.md

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ If you are using the [SaaS version available on swiftype.com](https://app.swifty
6666

6767
The client is compatible with all modern browsers.
6868

69-
Note that this library depends on the [Fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_AP).
69+
Note that this library depends on the [Fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API).
7070

7171
This is not supported by Internet Explorer. If you need backwards compatibility
7272
for Internet Explorer, you'll need to polyfill the Fetch API with something
@@ -185,14 +185,7 @@ var options = {
185185
};
186186

187187
client
188-
.querySuggestion("cat", {
189-
size: 3,
190-
types: {
191-
documents: {
192-
fields: ["name"]
193-
}
194-
}
195-
})
188+
.querySuggestion("cat", options)
196189
.then(response => {
197190
response.results.documents.forEach(document => {
198191
console.log(document.suggestion);

0 commit comments

Comments
 (0)