@@ -35,7 +35,7 @@ import neo4j, { Node, Path, Record, Relationship } from 'neo4j-driver'
3535import bolt from 'services/bolt/bolt'
3636import { recursivelyExtractGraphItems } from 'services/bolt/boltMappings'
3737import { stringModifier } from 'services/bolt/cypherTypesFormatting'
38- import { stringifyMod , unescapeDoubleQuotesForDisplay } from 'services/utils'
38+ import { stringifyMod } from 'services/utils'
3939import * as viewTypes from 'shared/modules/frames/frameViewTypes'
4040import { BrowserRequestResult } from 'shared/modules/requests/requestsDuck'
4141
@@ -231,14 +231,13 @@ export const initialView = (props: any, state: any = {}) => {
231231 */
232232export const stringifyResultArray = (
233233 formatter = stringModifier ,
234- arr : any [ ] = [ ] ,
235- unescapeDoubleQuotes = false
234+ arr : any [ ] = [ ]
236235) => {
237236 return arr . map ( col => {
238237 if ( ! col ) return col
239238 return col . map ( ( fVal : any ) => {
240239 const res = stringifyMod ( fVal , formatter )
241- return unescapeDoubleQuotes ? unescapeDoubleQuotesForDisplay ( res ) : res
240+ return res
242241 } )
243242 } )
244243}
@@ -423,7 +422,10 @@ function isNeo4jValue(value: any) {
423422 }
424423}
425424
426- export const recordToStringArray = ( record : Record ) : string [ ] => {
425+ export const recordToStringArray = (
426+ record : Record ,
427+ discardDoubleQuotes ?: boolean
428+ ) : string [ ] => {
427429 const recursiveStringify = ( value : CypherDataType ) : string => {
428430 if ( Array . isArray ( value ) ) {
429431 if ( value . length === 0 ) return '[]'
@@ -432,7 +434,13 @@ export const recordToStringArray = (record: Record): string[] => {
432434
433435 if ( isCypherPropertyType ( value ) ) {
434436 //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+ )
436444 }
437445
438446 // We have nodes, relationships, paths and cypher maps left.
0 commit comments