1.4.1 • Published 5 years ago

@kikstart-playground/graphql-intercom v1.4.1

Weekly downloads
126
License
MIT
Repository
github
Last release
5 years ago

@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

1.4.1

5 years ago

1.4.0

5 years ago

1.3.10

5 years ago

1.3.11

5 years ago

1.3.9

5 years ago

1.3.8

5 years ago

1.3.7

5 years ago

1.3.3

5 years ago

1.3.2

5 years ago

1.3.1

5 years ago

1.3.0

5 years ago

1.2.0

5 years ago

1.2.3

5 years ago

1.2.1-beta.0

5 years ago

1.2.1-beta.1

5 years ago

1.2.1-beta.2

5 years ago

1.1.1

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.0

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago