All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ava-generator.graphql-maven-plugin-samples-Forum-server.1.0.0-RC1.source-code.forum.graphqls Maven / Gradle / Ivy

schema {
    query: QueryType
    mutation: MutationType
}

type QueryType {
    boards: [Board]
    topics(boardName: String!): [Topic]!
}

type MutationType {
	createBoard(name: String!, publiclyAvailable: Boolean): Board!
	createTopic(authorId: ID!, publiclyAvailable: Boolean, title: String!, content: String): Topic!
	createPost(authorId: ID!, publiclyAvailable: Boolean, title: String!, content: String!): Post!
}


enum MemberType {
    ADMIN
    MODERATOR
    STANDARD
}

type Member {
    id: ID!
    name: String!
    alias: String
    email: String!
    type: MemberType
}

type Board {
    id: ID!
    name: String!
    publiclyAvailable: Boolean
    topics(since: String): [Topic]!
}

type Topic {
    id: ID!
    date: String!
    author: Member!
    publiclyAvailable: Boolean
    nbPosts: Int
    title: String!
    content: String
    posts(since: String): [Post]!
}

type Post {
    id: ID!
    date: String!
    author: Member
    publiclyAvailable: Boolean
    title: String!
    content: String!
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy