Skip to content

Instantly share code, notes, and snippets.

@pavanjoshi914
Last active August 31, 2022 09:49
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 pavanjoshi914/d2fa9e9a5670ee8e5031a5fedbfe498d to your computer and use it in GitHub Desktop.
Save pavanjoshi914/d2fa9e9a5670ee8e5031a5fedbfe498d to your computer and use it in GitHub Desktop.
// querying a single field having information about type of metadata
const metadataType = await db.metadata.get('type')
.where("host")
.equalsIgnoreCase(current_running_host)
.first();
console.log(metadataType);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment