Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@hperrin
Last active May 10, 2018 00:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hperrin/55935d42e01da53f8418 to your computer and use it in GitHub Desktop.
Save hperrin/55935d42e01da53f8418 to your computer and use it in GitHub Desktop.
Example Nymph Query from Frontend
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