graphql-compose / graphql-compose/graphql-compose-elasticsearch
Elastic Internal TCs with relay connection
- Dominant language
- TypeScript
- Stars
- 584
- Forks
- 76
- PR merge metrics
- No merged PRs in 30d
Description
Hi @nodkz , Do you have a way to support relay/connection for internal or nested data?
So lets say you have a root defined by:
```js
const FlightEsTC = composeWithElastic({
graphqlTypeName: 'fl',
elasticIndex: 'kibana_sample_data_flights',
elasticType: '_doc',
elasticMapping: ecommerceMapping,
elasticClient: elasticClient,
schemaComposer: schemaComposer
});
```
And You wanna add relays to internal sub query:
```js
let EcommerceecommerceGeoipTC = schemaComposer.getOTC('ecommerceecommerceGeoip');
schemaComposer.getOTC('ecommerceecommerce').addFields({
geoipConnection: composeWithRelay(EcommerceecommerceGeoipTC)
```
How can we do this?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.