Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 930 Bytes

README.md

File metadata and controls

13 lines (9 loc) · 930 Bytes

@sequence

The custom directive @sequence resolves a field by execute a sequence of other fields, for example, fetching an authorization token and then connecting to a backend.

View the documentation on the custom directive @sequence.

Snippets

  • arguments shows how query arguments get passed down a sequence
  • forLoops shows how sequence acts as a nested for loop
  • transformsInMaterializer shows how connecting two subgraphs can invoke transformations in between. For example, thecityof a customer can be fed into aweatherthat takeslat,lon by calling some geocoding in the sequence
  • useOfJSON shows how, in long sequences, a new type does not have to created for every step--treat everything as JSON up to the last step, and your type system stays clean.