logreio-apollo-server

Apollo Server Plugin for Logre.IO

Usage no npm install needed!

<script type="module">
  import logreioApolloServer from 'https://cdn.skypack.dev/logreio-apollo-server';
</script>

README

Logre.IO Apollo Server Plugin

Apollo Server plugin to send logs to Logre.IO.

Twitter Follow

Installation

$ npm install logreio-apollo-server
# or
$ yarn add logreio-apollo-server

Usage

import LogreIOPlugin from 'logreio-apollo-server'
// or
const LogreIOPlugin = require('logreio-apollo-server').default

// ...

const server = new ApolloServer({
  typeDefs,
  resolvers,
  plugins: [
    LogreIOPlugin({
      id: "266715545538134546",
      key: "****"
    }),
  ],
});