1.4.1 • Published 6 years ago
@kikstart-playground/graphql-intercom v1.4.1
@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-intercomUsage
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
6 years ago
1.4.0
6 years ago
1.3.10
6 years ago
1.3.11
6 years ago
1.3.9
6 years ago
1.3.8
6 years ago
1.3.7
6 years ago
1.3.3
6 years ago
1.3.2
6 years ago
1.3.1
6 years ago
1.3.0
6 years ago
1.2.0
6 years ago
1.2.3
6 years ago
1.2.1-beta.0
6 years ago
1.2.1-beta.1
6 years ago
1.2.1-beta.2
6 years ago
1.1.1
6 years ago
1.1.3
6 years ago
1.1.2
6 years ago
1.1.0
6 years ago
1.0.9
6 years ago
1.0.8
6 years ago
1.0.7
6 years ago
1.0.6
6 years ago
0.0.0-development
6 years ago