Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

query sequnce graphql

<Query query={firstQuery}>
  {({ data: { someQuery: { someValue } = {} } = {} }) => (
    <Query
      query={secondQuery}
      variables={{var1: someValue}}
      skip={someValue === undefined}
    >
      {({ data: secondQueryData }) => (
        // your component here
      )}
</Query>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #query #sequnce #graphql
ADD COMMENT
Topic
Name
9+8 =