@@ -35,7 +35,7 @@ import neo4j, { Node, Path, Record, Relationship } from 'neo4j-driver'
35
35
import bolt from 'services/bolt/bolt'
36
36
import { recursivelyExtractGraphItems } from 'services/bolt/boltMappings'
37
37
import { stringModifier } from 'services/bolt/cypherTypesFormatting'
38
- import { stringifyMod , unescapeDoubleQuotesForDisplay } from 'services/utils'
38
+ import { stringifyMod } from 'services/utils'
39
39
import * as viewTypes from 'shared/modules/frames/frameViewTypes'
40
40
import { BrowserRequestResult } from 'shared/modules/requests/requestsDuck'
41
41
@@ -231,14 +231,13 @@ export const initialView = (props: any, state: any = {}) => {
231
231
*/
232
232
export const stringifyResultArray = (
233
233
formatter = stringModifier ,
234
- arr : any [ ] = [ ] ,
235
- unescapeDoubleQuotes = false
234
+ arr : any [ ] = [ ]
236
235
) => {
237
236
return arr . map ( col => {
238
237
if ( ! col ) return col
239
238
return col . map ( ( fVal : any ) => {
240
239
const res = stringifyMod ( fVal , formatter )
241
- return unescapeDoubleQuotes ? unescapeDoubleQuotesForDisplay ( res ) : res
240
+ return res
242
241
} )
243
242
} )
244
243
}
@@ -423,7 +422,10 @@ function isNeo4jValue(value: any) {
423
422
}
424
423
}
425
424
426
- export const recordToStringArray = ( record : Record ) : string [ ] => {
425
+ export const recordToStringArray = (
426
+ record : Record ,
427
+ discardDoubleQuotes ?: boolean
428
+ ) : string [ ] => {
427
429
const recursiveStringify = ( value : CypherDataType ) : string => {
428
430
if ( Array . isArray ( value ) ) {
429
431
if ( value . length === 0 ) return '[]'
@@ -432,7 +434,13 @@ export const recordToStringArray = (record: Record): string[] => {
432
434
433
435
if ( isCypherPropertyType ( value ) ) {
434
436
//Note: later we should use propertyToString here but needs to be updated to show year in durations.
435
- return stringifyMod ( value , stringModifier , true )
437
+ return stringifyMod (
438
+ value ,
439
+ ( v : any ) => stringModifier ( v , discardDoubleQuotes ) ,
440
+ true ,
441
+ false ,
442
+ discardDoubleQuotes
443
+ )
436
444
}
437
445
438
446
// We have nodes, relationships, paths and cypher maps left.
0 commit comments