Skip to content
This repository was archived by the owner on Apr 19, 2023. It is now read-only.

Best practices for GraphQL #291

Open
leolorenzoluis opened this issue Jul 8, 2021 · 0 comments
Open

Best practices for GraphQL #291

leolorenzoluis opened this issue Jul 8, 2021 · 0 comments

Comments

@leolorenzoluis
Copy link

** Which Category is your question related to? **
Wiki

Based off https://github.com/awslabs/amplify-video/wiki/Troubleshooting

** Provide additional details e.g. code snippets **

In GridView-index.jsx there's a comment

//Replace Location 13 with this: (Please note that this is using not best practices of GraphQL) Contact sampatze@ if you want to know how to update.
const region = Amplify._config.aws_project_region;
this.setState({
  sources: [{
      src: `https://${awsvideo.awsOutputVideo}/${item.video.id}/${item.video.id}.m3u8`,
      type: 'application/x-mpegURL',
    }],
  displayingMovie: true,
  choosenItem: item,
  token: item.video.token,
});

I'd like to know what is the best practice?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant