moonbitstack/moongql/examples/27-schema-first does not have a README file

    Author

    pub(all) struct Author {
    id : String
    name : String
    }

    Book

    pub(all) struct Book {
    id : String
    title : String
    status : Status
    author_id : String
    }

    The package's own Book: the schema has no authorId, and Book::author needs one. Declaring the struct is what keeps it; shop.g.mbt binds to this one instead of generating its own.

    Book::to_gql

    Mutation

    pub(all) struct Mutation {
    }

    NewBook

    pub(all) struct NewBook {
    title : String
    author_id : String
    }

    Query

    pub(all) struct Query {
    }

    Subscription

    pub(all) struct Subscription {
    }

    register_subscriptions