Last active
August 29, 2015 14:27
-
-
Save schleichardt/11489775676679d3da09 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
see output at https://gist.github.com/schleichardt/1f456e61fb1aa102bb5a#file-output-txt