Skip to content

Instantly share code, notes, and snippets.

@schleichardt
Last active August 29, 2015 14:27
Show Gist options
  • Save schleichardt/11489775676679d3da09 to your computer and use it in GitHub Desktop.
Save schleichardt/11489775676679d3da09 to your computer and use it in GitHub Desktop.
final List<String> skus = Arrays.asList("1000", "2000", "3000", "4000");
final ProductQuery productQuery = ProductQuery.of()
.withPredicates(m -> m.masterData().current().allVariants()
.where(variant -> variant.sku().isIn(skus)));
System.err.println(productQuery);
System.err.println("sphere readable predicate");
System.err.println(productQuery.predicates().get(0).toSphereQuery());
@schleichardt
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment