Aws-mobile-appsync-sdk-js: How do you pass in variables to buildSubscription

Created on 3 Aug 2018  路  1Comment  路  Source: awslabs/aws-mobile-appsync-sdk-js

I cannot seem to find a way to pass in variables to the documentNode subscription query, what is the best way to handle this please?

question

Most helpful comment

@ighotouch you can pass variables like this

buildSubscription({query: DocumentNode, variables: object}, listUsers)

>All comments

@ighotouch you can pass variables like this

buildSubscription({query: DocumentNode, variables: object}, listUsers)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

JonathanHolvey picture JonathanHolvey  路  4Comments

wzup picture wzup  路  3Comments

chaim007 picture chaim007  路  4Comments

kabriel picture kabriel  路  4Comments

peterservisbot picture peterservisbot  路  3Comments