Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
purescript-gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
142
Issues
142
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
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
purescript-gargantext
Commits
b092b18f
Commit
b092b18f
authored
Apr 29, 2022
by
Karen Konou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[GQL] Update tree endpoint
parent
27399e65
Pipeline
#2783
canceled with stage
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
Endpoints.purs
src/Gargantext/Components/GraphQL/Endpoints.purs
+1
-1
Tree.purs
src/Gargantext/Components/GraphQL/Tree.purs
+4
-0
No files found.
src/Gargantext/Components/GraphQL/Endpoints.purs
View file @
b092b18f
...
@@ -2,7 +2,7 @@ module Gargantext.Components.GraphQL.Endpoints where
...
@@ -2,7 +2,7 @@ module Gargantext.Components.GraphQL.Endpoints where
import Gargantext.Prelude
import Gargantext.Prelude
import Gargantext.Components.GraphQL.Node (Node, nodeParentQuery)
import Gargantext.Components.GraphQL.Node (Node, nodeParentQuery
, nodesQuery
)
import Gargantext.Components.GraphQL.Tree (TreeFirstLevel, treeFirstLevelQuery)
import Gargantext.Components.GraphQL.Tree (TreeFirstLevel, treeFirstLevelQuery)
import Gargantext.Components.GraphQL.User (UserInfo, userInfoQuery)
import Gargantext.Components.GraphQL.User (UserInfo, userInfoQuery)
...
...
src/Gargantext/Components/GraphQL/Tree.purs
View file @
b092b18f
...
@@ -11,6 +11,7 @@ type TreeNode =
...
@@ -11,6 +11,7 @@ type TreeNode =
{ name :: String
{ name :: String
, id :: Int
, id :: Int
, node_type :: NodeType
, node_type :: NodeType
, parent_id :: Maybe Int
}
}
type TreeFirstLevel =
type TreeFirstLevel =
{ root :: TreeNode
{ root :: TreeNode
...
@@ -22,14 +23,17 @@ treeFirstLevelQuery = { tree: { root_id: Var :: _ "id" Int} =>>
...
@@ -22,14 +23,17 @@ treeFirstLevelQuery = { tree: { root_id: Var :: _ "id" Int} =>>
{ root: { name: unit
{ root: { name: unit
, node_type: unit
, node_type: unit
, id: unit
, id: unit
, parent_id: unit
}
}
, children: { name: unit
, children: { name: unit
, node_type: unit
, node_type: unit
, id: unit
, id: unit
, parent_id: unit
}
}
, parent: { name: unit
, parent: { name: unit
, node_type: unit
, node_type: unit
, id: unit
, id: unit
, parent_id: unit
}
}
}
}
}
}
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