SHARE
TWEET

Untitled

a guest Feb 14th, 2020 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top