(queryText, schema)
| 68 | } |
| 69 | |
| 70 | getEntitySuggestions(queryText, schema) { |
| 71 | const { collection, location } = this.props; |
| 72 | const query = entitySuggestQuery(location, collection, schema, { |
| 73 | prefix: queryText, |
| 74 | }); |
| 75 | |
| 76 | // throttle entities query request |
| 77 | clearTimeout(this.entitySuggestTimeout); |
| 78 | this.entitySuggestTimeout = setTimeout(() => { |
| 79 | this.props.queryEntities({ query }); |
| 80 | }, 150); |
| 81 | |
| 82 | return new Promise((resolve) => { |
| 83 | this.pendingPromises.push({ query, promiseResolve: resolve }); |
| 84 | }); |
| 85 | } |
| 86 | |
| 87 | async createEntity(entity, local = true) { |
| 88 | const { collection, entitySetId, onStatusChange } = this.props; |
no test coverage detected