Skip to content

Instantly share code, notes, and snippets.

@rasmushjulskov
Created September 18, 2017 19:58
Show Gist options
  • Select an option

  • Save rasmushjulskov/4832711684e49ee391714143cc75e0a9 to your computer and use it in GitHub Desktop.

Select an option

Save rasmushjulskov/4832711684e49ee391714143cc75e0a9 to your computer and use it in GitHub Desktop.
update-expression.js
UpdateExpression: [
'remove connections[:ActivityConnectionFrom|:ActivityConnectionTo]',
],
ExpressionAttributeValues: {
':ActivityConnectionFrom': activityConnection.from,
':ActivityConnectionTo': activityConnection.to,
},
@rasmushjulskov
Copy link
Author

Error:
Error: GraphQL error: Invalid UpdateExpression: Syntax error; token: ":ActivityConnectionFrom", near: "REMOVE :ActivityConnectionFrom"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment