Skip to content

Elastic Internal TCs with relay connection #91

Open
@amarflybot

Description

@amarflybot

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:

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:

let EcommerceecommerceGeoipTC = schemaComposer.getOTC('ecommerceecommerceGeoip');

schemaComposer.getOTC('ecommerceecommerce').addFields({
  geoipConnection: composeWithRelay(EcommerceecommerceGeoipTC)

How can we do this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions