Comments (4)
I did try that by setting the ID to StoredValues and re-evaluating. Strangely, it didn't filter. However, I will try another method of setting the ID to selectively sync.
Happy to consider this closed.
from amplify-flutter.
Hi @osehmathias, could you please provide more context about your use case?
from amplify-flutter.
Hi @Equartey - thank you for the response!
The application allows clinicians and clients to interact with the data a client has created. You can also invite participants.
Participants are clients that have access to another client's account. This is used for family members and so forth.
Instead of using the owner
field to grant participant access, I am using a group and an attribute on their Cognito object which indicates the clientID the participant has access to. This ID is used for querying.
When a participant is logging in, it's extremely slow because it's syncing the entire DB.
The ideal solution would be to use the owner
field with multiple owners. However, this is not available in Amplify Flutter. #3388
Another solution could be to use the clientID attribute on the participant's Cognito object to selectively sync. However, it seems like once the Amplify DataStore configuration object has been set when the app first loads, it can't be modified.
I am curious if anyone knows a way to selectively sync with a variable that becomes available when a user has logged in.
from amplify-flutter.
Hi @osehmathias, appreciate the extra context.
If you're looking to change the selective sync during runtime, checkout this guide:
from amplify-flutter.
Related Issues (20)
- DataStoreSyncExpression failed on Android devices HOT 12
- Remember my device require re-sign in after forget my device is executed else receive exception HOT 2
- Unable to send verification link via email HOT 5
- Amplify Flutter Auth confirmSignIn() times out HOT 14
- table update issue HOT 1
- 'AuthProvider' doesn't conform to the bound 'Enum?' when setting up the Authenticator HOT 6
- Support for handling analytics in native code HOT 2
- when ever i am trying to do flutter run then a error occurs HOT 13
- PaginatedResult<T>.requestForNextResult does not use the authorizationMode from the previous query. HOT 6
- QUESTION: Is it possible to use an existing graphQL API not built with Amplify backend? HOT 2
- App Store Connect Warning: ITMS-91053: Missing API declaration HOT 5
- Flutter app crushes on Android release build HOT 7
- Update aws_common dependencies HOT 1
- How to set Public Read while uploading to files to aws. HOT 3
- Guidance on Integrating Flutter App Authentication with Next.js API using AWS Amplify HOT 4
- [amplify_auth_cognito] type 'FetchAuthSessionFetching' is not a subtype of type 'FetchAuthSessionSuccess' in type cast HOT 3
- Feature Request: Sharing authentication state between apps from the same developer HOT 9
- How to call Admin Queries API with authorization? HOT 3
- S3 access denied when making the API call. HOT 5
- No way to send unconfirmed user confirmation email when they restart the app HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from amplify-flutter.