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
175
Issues
175
List
Board
Labels
Milestones
Merge Requests
10
Merge Requests
10
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
39df5ecd
Commit
39df5ecd
authored
Oct 21, 2021
by
Przemyslaw Kaminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[graphql] README updated, some refactoring
parent
b19e86ef
Pipeline
#1996
failed with stage
in 10 minutes and 25 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
5 deletions
+38
-5
README.md
README.md
+33
-0
Contact.hs
src/Gargantext/Database/Admin/Types/Hyperdata/Contact.hs
+5
-5
No files found.
README.md
View file @
39df5ecd
...
...
@@ -196,3 +196,36 @@ To build documentation, run:
stack
--docker
build
--haddock
--no-haddock-deps
--fast
```
## GraphQL
Some introspection information.
Playground is located at http://localhost:8008/gql
### List all GraphQL types in the Playground
```
{
__schema {
types {
name
}
}
}
```
### List details about a type in GraphQL
```
{
__type(name:"User") {
fields {
name
description
type {
name
}
}
}
}
```
src/Gargantext/Database/Admin/Types/Hyperdata/Contact.hs
View file @
39df5ecd
...
...
@@ -98,11 +98,11 @@ defaultContactWho :: ContactWho
defaultContactWho
=
contactWho
"Pierre"
"Dupont"
contactWho
::
FirstName
->
LastName
->
ContactWho
contactWho
fn
ln
=
ContactWho
Nothing
(
Just
fn
)
(
Just
ln
)
[]
[]
contactWho
fn
ln
=
ContactWho
{
_cw_id
=
Nothing
,
_cw_firstName
=
Just
fn
,
_cw_lastName
=
Just
ln
,
_cw_keywords
=
[]
,
_cw_freetags
=
[]
}
data
ContactWhere
=
ContactWhere
{
_cw_organization
::
[
Text
]
...
...
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