MCPcopy Index your code
hub / github.com/josdejong/jsoneditor / tryCreateQuery

Function tryCreateQuery

src/js/showTransformModal.js:219–234  ·  view source on GitHub ↗
(json, queryOptions)

Source from the content-addressed store, hash-verified

217 const debouncedUpdatePreview = debounce(updatePreview, 300)
218
219 function tryCreateQuery (json, queryOptions) {
220 try {
221 query.value = createQuery(json, queryOptions)
222 ok.disabled = false
223
224 debouncedUpdatePreview()
225 } catch (err) {
226 const message = 'Error: an error happened when executing "createQuery": ' + (err.message || err.toString())
227
228 query.value = ''
229 ok.disabled = true
230
231 preview.className = 'jsoneditor-transform-preview jsoneditor-error'
232 preview.value = message
233 }
234 }
235
236 function generateQueryFromWizard () {
237 const queryOptions = {}

Callers 2

generateQueryFromWizardFunction · 0.85
showTransformModalFunction · 0.85

Calls 1

createQueryFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…