Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
gdd-sigma-poc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Guillaume WANG
gdd-sigma-poc
Commits
2a3feaca
Commit
2a3feaca
authored
7 years ago
by
Wilson JALLET
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of gitlab.binets.fr:br/sigma-backend
parents
5d2100f4
51f385a1
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/graphql/schema.js
+35
-0
35 additions, 0 deletions
src/graphql/schema.js
with
35 additions
and
0 deletions
src/graphql/schema.js
+
35
−
0
View file @
2a3feaca
...
@@ -38,6 +38,10 @@ const typeDefs = `
...
@@ -38,6 +38,10 @@ const typeDefs = `
}
}
type Mutation {
type Mutation {
asAdmin(groupid: String): AdminMutation
asMember(groupid: String): MemberMutation
asViewer(groupid: String): ViewerMutation
createGroup(
createGroup(
uid: ID = null
uid: ID = null
name: String
name: String
...
@@ -48,6 +52,37 @@ const typeDefs = `
...
@@ -48,6 +52,37 @@ const typeDefs = `
): Group
): Group
}
}
type AdminMutation {
createSubgroup(
uid: ID = null,
name: String,
website: String,
description: String,
school: String,
): Group
addUser(userid : String): User
removeUser(userid : String): User
addAdmin(userid : String): User
removeAdmin(userid : String): User
editGroup(
name: String,
website: String,
description: String,
school: String,
): Group
}
type MemberMutation {
leave: Group
}
type ViewerMutation {
requestJoin: Group
}
`
;
`
;
/**
/**
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment