Skip to content
Discussion options

You must be logged in to vote

Let me explain from scratch. There are two types of dynamic variables in GraphQL Mesh;

  • Environmental Variables (Standard in all YAML files);
someparameterorvalue${YOUR_ENVIRONMENTAL_VARIABLE}someothervalue

${YOUR_ENVIRONMENTAL_VARIABLE} will be replaced by the actual value. For example if you run your project like below;

YOUR_ENVIRONMENTAL_VARIABLE=MYVALUE yarn start

So interpolated config file will be processed like below;

someparameterorvalueMYVALUEsomeothervalue
  • Resolver Data;
    In GraphQL, resolver functions will take 4 parameters; (If you don't know much about those, you can learn more in GraphQL Official Documentation)
    • root -> Parent Value
    • args -> Arguments of the field
    • c…

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@ardatan
Comment options

@loganpowell
Comment options

Comment options

You must be logged in to vote
1 reply
@loganpowell
Comment options

Answer selected by loganpowell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #614 on June 24, 2020 15:24.