Last active
May 10, 2018 00:42
-
-
Save hperrin/55935d42e01da53f8418 to your computer and use it in GitHub Desktop.
Example Nymph Query from Frontend
This file contains 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
try { | |
const entities = await Nymph.getEntities( | |
{'class': BlogPost.class}, | |
{'type': '&', | |
'like': ['title', '%easy%'], | |
'equal': ['archived', false] | |
} | |
); | |
console.log(entities); | |
} catch (e) { | |
alert('Error'); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment