FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
unigraph-dev/packages/unigraph-dev-backend/src/utils.ts at main · unigraph-dev/unigraph-dev · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
unigraph-dev
/
unigraph-dev
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
56
Star
764
Code
Issues
22
Pull requests
2
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
unigraph-dev
/
packages
/
unigraph-dev-backend
/
src
/
utils.ts
Copy path
More file actions
More file actions
Latest commit
History
History
History
14 lines (12 loc) · 467 Bytes
Breadcrumbs
unigraph-dev
/
packages
/
unigraph-dev-backend
/
src
/
utils.ts
Copy path
File metadata and controls
14 lines (12 loc) · 467 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import
_
from
'lodash'
;
// eslint-disable-next-line import/prefer-default-export
export
function
mergeWithConcatArray
(
objValue
:
any
,
srcValue
:
any
)
{
if
(
_
.
isArray
(
objValue
)
)
{
return
objValue
.
concat
(
srcValue
)
;
}
return
undefined
;
}
export
const
processQueryTemplate
=
(
template
:
string
,
schemaCache
:
any
)
=>
template
.
replace
(
/
\$
u
n
i
g
r
a
p
h
.
i
d
{
(
\$
\/
[
^
}
]
*
)
}
/
g
,
(
match
,
capture
)
=>
{
return
schemaCache
.
dataAlt
[
0
]
?.
[
capture
]
.
uid
;
}
)
;
Back
|
FazBrowse Home
|
New Git URL