Uploaded image for project: 'AeroGear'
  1. AeroGear
  2. AEROGEAR-7721

Provide a way to pass options to Apollo server

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • None

      Trello: https://trello.com/c/VemGvOFs/118-as-a-developer-i-want-to-make-sure-that-all-user-provided-inputs-for-the-sync-server-such-as-schemas-request-mappings-and-respon

      Investigation document: https://docs.google.com/document/d/1SPA6tqW78SLXwZLldOdG-Zw6PtBiVfdpIzn9mrg-Lyk/edit#

      As per written in the investigation document, we need to provide a way to pass config options to Apollo server to:

      • disable introspection queries
      • limit query length
      • limit query depth
      • ...

      UPDATE: I was thinking all these security features are supported out-of-the-box with Apollo server and thinking that we need to pass simple JSON to Apollo server. But these are all provided by separate packages which are attached to Apollo server as validationRules. So, we just need to come up with a config JSON format and pass the related values from the config JSON to those validationRules.

            scoady Stephen Coady
            aliok@redhat.com Ali Ok
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: