Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # # matchTo adds a match_score field on ingredients
- # # we limit the results to first 5 results from a set {10,11,...,20}
- query ingredient_matches{
- ingredients(
- matchTo: [1,2],
- djangoFilter: {
- orderBy: "-match_score",
- filter: "id__in=[10,11,12,13,14,15,16,17,18,19,20]"
- }
- pagination: {
- limitTo: 5
- }
- ){
- id
- name
- matchScore
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement