Skip to content

Commit 939b858

Browse files
committed
Add filter example with multiple values
We didn't really have an explicit example of how to pass in multiple values for a single query parameter.
1 parent b3e07a2 commit 939b858

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ first_lexical_entry = entry.lexicalEntries.first
3434
filters = { lexicalCategory: 'Verb', domains: 'Art'}
3535
client.entry(word: 'truth', dataset: 'en-gb', params: filters)
3636

37+
# To have multiple values for a single filter use comma separated terms
38+
filters = { lexicalCategory: 'Verb,Noun' }
39+
3740
# You can also search for the results for different datasets
3841
# Refer to the Oxford Dictionaries documentation for all the
3942
# possible datasets

0 commit comments

Comments
 (0)