@kikstart-playground/graphql-intercom
GraphQL Intercom module for NestJS
Last updated 8 months ago by beeman .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @kikstart-playground/graphql-intercom 
SYNC missed versions from official npm registry.

@kikstart-playground/graphql-intercom

GraphQL Intercom module for NestJS

Installation

Install @kikstart-playground/graphql-intercom from npm:

npm i @kikstart-playground/graphql-intercom
# or 
yarn add @kikstart-playground/graphql-intercom

Usage

Add the module to your NestJS API:

// Import the module
import { GraphQLIntercomModule } from '@kikstart-playground/graphql-intercom'
// Import the PubSub you like to use
import { PubSub } from 'apollo-server-express'

@Module({
  imports: [
  	//...other imports
    // Import the module and provide an instance of PubSub 
    GraphQLIntercomModule.forRoot({ pubSub: new PubSub() }),
  ],
})
export class AppModule {}

Use the following queries to interact with the intercom:

fragment IntercomMessageDetails on IntercomMessage {
  type
  scope
  payload
}

mutation IntercomPub($type:String! $scope: String $payload: JSON) {
  intercomPub(type: $type scope: $scope payload: $payload) {
    ...IntercomMessageDetails
  }
}

subscription IntercomSub($type:String $scope: String) {
  intercomSub(type: $type scope: $scope) {
    ...IntercomMessageDetails
  }
}

MIT License 2020 Bram Borggreve

Current Tags

  • 1.4.1                                ...           latest (8 months ago)
  • 1.2.1-beta.2                                ...           next (9 months ago)

25 Versions

  • 1.4.1                                ...           8 months ago
  • 1.4.0                                ...           8 months ago
  • 1.3.11                                ...           8 months ago
  • 1.3.10                                ...           8 months ago
  • 1.3.9                                ...           8 months ago
  • 1.3.8                                ...           8 months ago
  • 1.3.7                                ...           8 months ago
  • 1.3.3                                ...           8 months ago
  • 1.3.2                                ...           8 months ago
  • 1.3.1                                ...           8 months ago
  • 1.3.0                                ...           8 months ago
  • 1.2.3                                ...           9 months ago
  • 1.2.1-beta.2                                ...           9 months ago
  • 1.2.1-beta.1                                ...           9 months ago
  • 1.2.1-beta.0                                ...           9 months ago
  • 1.2.0                                ...           9 months ago
  • 1.1.3                                ...           9 months ago
  • 1.1.2                                ...           9 months ago
  • 1.1.1                                ...           9 months ago
  • 1.1.0                                ...           9 months ago
  • 1.0.9                                ...           9 months ago
  • 1.0.8                                ...           9 months ago
  • 1.0.7                                ...           9 months ago
  • 1.0.6                                ...           9 months ago
  • 0.0.0-development                                ...           9 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 25
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |