-
Notifications
You must be signed in to change notification settings - Fork 247
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Amplify API: Model based APIs and OIDC support #308
Comments
Is there a timeline on GraphQL Request Helpers? |
Hey heyy guys! Does someone know alternative ways of automatically generating GraphQL Request Helpers? I am thinking of automatically generating them in JavaScript and then translating them to Dart... but I am not sure if this will work, I'll test it out and comment back how it went. If you know other more efficient ways of doing this, please let us know. Thanks in advance. Cheers! |
Hey guys, The doc at this url
One model in my scheme is set as follows:
So I want my Guest Users (the ones who have not yet created an account) to be able to get a list of Exercices, just like the Authenticated ones. Is it not available yet? Upcoming? Any workaround? I am asking here, as the doc is pointing to this issue. Feel free to push me towards the right direction... |
Hey guys, I'm kind of having some troubles using the API with graphql because the default token used for the api is the access token but in our backend we already have implemented with the idToken and this won't let me retrieve the data for the app. Meanwhile I'm using the amazon_cognito_identity_dart_2 to implement the queries with http package. I don't know if you may have another way? |
Is this on the roadmap, anywhere? |
@Amplifiyer any updates? |
@cto-leaps do you find a solution? |
How is this looking? |
@jodafm Nope. I had to turn the whole thing around and have a local Exercise DB installed with the app. Quite a nuisance and a waste of time, tbh. |
Any news about this? It is not possible for us to use Amplify CLI for our project for a number of reasons so we use CDK to provision our cloud. However this forces us to write the queries and parsers manually in our Flutter app which is time consuming and will only get worse over time as the API grows and changes happen |
Any updates on this? |
Any plan to update soon? Really needed this :D Thanks! |
It'd be awesome to have this feature available soon! Any updates on the timeline? Thank you 😄 |
In taking a step back, and deciding what avenue to take on a project if this didn't exist, I discovered that DataStore (https://docs.amplify.aws/lib/datastore/getting-started/q/platform/flutter/) is the answer, at least to my problems. |
It seems like most people are waiting for GraphQL model helpers - rest assured they are coming shortly! As for the other two points mentioned, OIDC and GraphQL subscriptions, these are both available currently. As @ESRuth mentions - DataStore is another alternative available. |
Nice! Can't wait. Thanks! |
Thank you for the feedback, @filippomenchini. We are continuously working hard to make DataStore more reliable and stable for production workloads. I hope you check back in at some point to see if it has improved to fit your use case, and please always feel free to share any issues you run into along the way. That said, we are certainly excited for the improvements that GraphQL helpers will bring for the more customized workflows which DataStore cannot fill. |
I'm constantly looking on DataStore improvements, I really like it. But in my use case is not ideal. Thanks again for the support, @dnys1 ! |
@filippomenchini - I would love to hear more about the issues you are facing as well! We are trying to understand where the gaps are with Datastore for our developers. You can reach out to me on discord at AbdallahShaban#4744 or on twitter at @AbdallahSh07 |
We are happy to announce the release of model-based GraphQL helpers with amplify-flutter version 0.4.0. Our API getting started guide has been updated to use model helpers at https://docs.amplify.aws/lib/graphqlapi/getting-started/q/platform/flutter/, although manual string-based requests are still supported. With that, I will close this issue. Please file new issues for any problems/requests you may encounter while integrating this into your project. Shoutout to our intern from last summer @Equartey as this was his intern project and he did a great job. |
@jamesblasco is the Book object in screenshot above your whole schema? If not, do you mind putting a copy of your schema here so we can try to repro? At first glance, I noticed there is no |
@ragingsquirrel3 |
@Dachmian using the model helpers without an amplify schema (and resulting compiled appsync schema) is not a supported use case. While it might be possible to workaround, here are some things to be aware of:
After all this, not sure what benefits you would have and difficult to say which requests would work with your schema. |
The current version of Amplify API has some features that will be supported in the future:
OIDC support : https://docs.amplify.aws/lib/restapi/authz/q/platform/android#cognito-user-pool-authorization
GraphQL Request Helpers that automatically generate GraphQL requests for you. Instead, you need to create the GraphQL request document yourself when calling the API.
(ie. only Advanced Workflows is supported: https://docs.amplify.aws/lib/graphqlapi/advanced-workflows/q/platform/android)
GraphQL Subscriptions
The text was updated successfully, but these errors were encountered: