@ks-web-components/ks-graphql-subscription-adapter
v1.0.0
Published
This component subscribes to a GraphQL query and performs OnDataChange events to it's ancestors for the data lifecycle events
Downloads
5
Readme
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
Live Example
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 |