Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

graphql source: introspect the server (or load remote/local introspection) #4

Closed
5 tasks
dotansimha opened this issue Jun 28, 2023 · 1 comment
Closed
5 tasks
Assignees
Labels
feature A new feature

Comments

@dotansimha
Copy link
Member

dotansimha commented Jun 28, 2023

Ideally, we want a graphql source to be able to load introspection for the source.

These are the options we need:

Load from source (default)

(default)

sources:
  - id: countries
    type: graphql
    config:
      endpoint: https://countries.trevorblades.com/

or

sources:
  - id: countries
    type: graphql
    config:
      endpoint: https://countries.trevorblades.com/
      introspection:
        from: source

or, with custom headers:

sources:
  - id: countries
    type: graphql
    config:
      endpoint: https://countries.trevorblades.com/
      introspection:
        from: source
        headers:
           X-Admin-Key: 123

or, with polling:

sources:
  - id: countries
    type: graphql
    config:
      endpoint: https://countries.trevorblades.com/
      introspection:
        from: source
        polling_interval: 60

Load from a remote JSON file (local or remote)

remote:

sources:
  - id: countries
    type: graphql
    config:
      endpoint: https://countries.trevorblades.com/
      introspection:
        from: json
        location: https://countries.trevorblades.com/introspection.json

local:

sources:
  - id: countries
    type: graphql
    config:
      endpoint: https://countries.trevorblades.com/
      introspection:
        from: json
        location: /file-system/introspection.json

Tasks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A new feature
Projects
None yet
2 participants