Phase 1 - extract model layer api - for review - DO NOT MERGE#2
Phase 1 - extract model layer api - for review - DO NOT MERGE#2
Conversation
|
Hi Sing Li, We're meeting later today, but I wanted to give some feedback before so you may have time to think about it. My main comment is that we need to better differentiate between code running on the client and on the server, and this will have repercussions for the current design. Meteor blurs the distinction between client and server because we have minimongo on the client, meaning we get to use a similar data access API on both. But we won't have this convenience with alternative accounts providers, as these will only run on the server. What I think is missing from the current design is a consideration of how server-side user data actually gets to the client. The only realistic option right now it seems is to continue to use DDP/minimongo for this. Apollo/GraphQL will likely become a a viable alternative in the future, but we're not there yet and we also have backwards compatibility to worry about. So that suggests some changes to the design:
Does this make sense to you? |
|
Absolutely. Looking forward to the meeting today. |
|
I think we have a meeting right now :) |
|
A few small comments about the design of the provider API:
|
|
|
For review purpose - DO NOT MERGE