1.0.0 • Published 3 years ago
ks-graphql-subscription-adapter
This component subscribes to a GraphQL query and performs OnDataChange events to it's ancestors for the data lifecycle events
Usage
npm install @ks-web-components/ks-graphql-subscription-adapter
Attributes
| Property | Attribute | Type | Default | Description |
|---|
| activeFilters | active-filters | object | | The filters to apply to the data |
| clientUrl | client-url | string | | The URL to use for the GraphQL client |
| headers | headers | object | | The headers to pass to the graphql server |
| queryString | query-string | string | | The query to be performed against the client URL |
Slots
| Name | Description |
|---|
| default slot | The content of the component |
Element API
| Name | Description |
|---|
| updateData | Refresh the content of the component |
Events
| Name | type | Description |
|---|
| onDataChange | Event | The data from the adapter change |