Skip to content
Snippets Groups Projects
Commit 2a3feaca authored by Wilson JALLET's avatar Wilson JALLET :money_with_wings:
Browse files

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
...@@ -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
}
`; `;
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment