Advertisement
Guest User

Untitled

a guest
Feb 14th, 2020
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.41 KB | None | 0 0
  1. # # matchTo adds a match_score field on ingredients
  2. # # we limit the results to first 5 results from a set {10,11,...,20}
  3. query ingredient_matches{
  4.   ingredients(
  5.    
  6.     matchTo: [1,2],
  7.    
  8.     djangoFilter: {
  9.         orderBy: "-match_score",
  10.         filter: "id__in=[10,11,12,13,14,15,16,17,18,19,20]"
  11.     }
  12.    
  13.     pagination: {
  14.         limitTo: 5    
  15.     }
  16.    
  17.   ){
  18.     id
  19.     name
  20.     matchScore
  21.   }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement