moonbitstack/moongql/examples/26-annotated-subgraph does not have a README file

    User

    pub struct User {
    id : String
    name : String
    }

    An entity: key is the fields a gateway refers to it by, and the fields carry their federation directives.

    User::to_gql

    countdown

    fn countdown(from : Int) -> Array[Int]

    The array is the events: each one is a next to the subscriber.

    hello

    fn hello() -> String

    register_federation

    fn register_federation(federation :
    Federation
    ) -> Unit

    register_subscriptions

    secret

    fn secret() -> String

    signed_in

    A check is a function of ResolveInfo.

    user_by_id

    fn user_by_id(id : String) -> User?

    How a representation becomes a User. Its parameters are the key's fields.