We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
findEntity
getEntity
getEntity throws an error when the entity is not found. This may force the developer to code this pattern:
let entity: Entity; try { entity = await jobState.getEntity(...); } catch (err) { entity = null; }
When the entity is expected to possibly be not found, it is more expressive and less code to write:
const entity = await jobState.findEntity(...);
The text was updated successfully, but these errors were encountered:
Super agree. I was thinking the same thing when I used it.
Sorry, something went wrong.
Fixes #284 - Add jobState.findEntity function
de06cc5
793d559
Merge pull request #287 from JupiterOne/284-findEntity
6e30b35
84beaed
Merge pull request #304 from JupiterOne/284-jobState-findEntity
5cf43d9
austinkelleher
No branches or pull requests
getEntity
throws an error when the entity is not found. This may force the developer to code this pattern:When the entity is expected to possibly be not found, it is more expressive and less code to write:
The text was updated successfully, but these errors were encountered: