init
This commit is contained in:
16
src/graphql/types.ts
Normal file
16
src/graphql/types.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
const typeDefs = /* GraphQL */ `
|
||||
type Query {
|
||||
getTotalGroups: Int!
|
||||
}
|
||||
type Mutation {
|
||||
addGroup(groupID: Int, groupName: String): Group!
|
||||
}
|
||||
type Group {
|
||||
telegramID: Int
|
||||
name: String
|
||||
createdAt: Date
|
||||
updatedAt: Date
|
||||
}
|
||||
scalar Date
|
||||
`;
|
||||
export default typeDefs;
|
||||
Reference in New Issue
Block a user