Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
haskell-gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
145
Issues
145
List
Board
Labels
Milestones
Merge Requests
6
Merge Requests
6
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
haskell-gargantext
Commits
67e903bb
Commit
67e903bb
authored
Jan 12, 2022
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FIX] getContextWith
parent
270350af
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
Context.hs
src/Gargantext/Database/Query/Table/Context.hs
+8
-0
No files found.
src/Gargantext/Database/Query/Table/Context.hs
View file @
67e903bb
...
...
@@ -35,6 +35,14 @@ import Opaleye hiding (FromField)
import
Prelude
hiding
(
null
,
id
,
map
,
sum
)
getContextWith
::
(
HasNodeError
err
,
JSONB
a
)
=>
ContextId
->
proxy
a
->
Cmd
err
(
Node
a
)
getContextWith
nId
_
=
do
maybeContext
<-
headMay
<$>
runOpaQuery
(
selectContext
(
pgNodeId
nId
))
case
maybeContext
of
Nothing
->
nodeError
(
DoesNotExist
nId
)
Just
r
->
pure
$
context2node
r
queryContextSearchTable
::
Select
ContextSearchRead
queryContextSearchTable
=
selectTable
contextTableSearch
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment