GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Api · Issue #16 · javascripteverywhere/api

Api #16

New issue
Copy link
New issue
Copy link
Open
Open
Api#16
Copy link

Description

@7ean
7ean
opened on Nov 26, 2021
Issue body actions
No description provided.

Activity

  1. mathewTheGreat commented on Mar 28, 2022

    @mathewTheGreat
    mathewTheGreat
    on Mar 28, 2022
    More actions

    apollo server object is an asynchronous function, the preceding line proceeds to access the server object before it could be initialized.

  2. Raikyo777 commented on Apr 6, 2022

    @Raikyo777
    Raikyo777
    on Apr 6, 2022
    More actions

    I think, It looks like this, to work as asynchronous function:

    async function startServer() {
    server = new ApolloServer({ typeDefs, resolvers });
    await server.start();
    server.applyMiddleware({ app, path: '/api' });
    }
    startServer();

    app.listen({ port }, () =>
    console.log(
    GraphQL Server running at htts://localhost: ${port} ${server.graphqlPath}
    )
    );

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.