@webresto/ng-gql
v2.1.2
Published
Library for working with GraphQL APIs for Webresto projects.
Readme
Library for working with GraphQL APIs for Webresto projects.
@webresto/ng-gql
Installation
First, you need to install the additional libraries required to connect to the GraphQL server:
npm i apollo-angular @apollo/client graphql subscriptions-transport-wsThen, install the library:
npm i @webresto/ng-gqlConfiguration
// app.module.ts
import { NgGqlModule } from '@webresto/ng-gql';
...
@NgModule({
imports: [
...
NgGqlModule.forRoot({
url: '...',
nesting: 2,
busSubscribeMode: 'subscribe'
}),
...
]
})
export class AppModule { }Description of the configuration object.
Usage
See the documentation.
This is the README for the graphql module.
