Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async initialize() {
if (!this.modelGraph) {
const models = await apiService.queryModels();
this.modelGraph = new JsonldGraph([
{ uri: "dtmi:dtdl:context;2", context }
]);
await this.modelGraph.load(models.map(x => x.model));
}
}