Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 660 Bytes

README.md

File metadata and controls

25 lines (17 loc) · 660 Bytes

Meteor Comments GraphQL

Add support for GraphQL to comments-ui.

import { wrapTypeDefsAndResolvers } from 'meteor/komentify:comments-graphql'
import { createApolloServer } from 'meteor/apollo'
import { makeExecutableSchema } from 'graphql-tools'

import { typeDefs, resolvers } from './app'

const schema = makeExecutableSchema(
  wrapTypeDefsAndResolvers({ typeDefs, resolvers }),
)

createApolloServer({ schema, graphiql: true })

How to install

First, install apollo for meteor and then run

meteor add komentify:comments-graphql