Commit graph

26 commits

Author SHA1 Message Date
xavcz
9d3df4ff1b get access to graphql server's context even if no user is logged in 2016-11-04 08:41:34 +01:00
Sacha Greif
b006db3a78 finish cleaning up resolvers 2016-11-04 09:31:32 +09:00
Sacha Greif
56bcfba245 first pass at splitting off resolvers 2016-11-03 21:39:09 +09:00
Sacha Greif
bb91c66ad7 working on client-only queries to the Apollo store 2016-11-03 17:16:12 +09:00
xavcz
7c88d27d62 have the mutation simulation and server operation returning the same result, add missing viewableIf, pass comment object to Telescope.operateOnItem 2016-11-02 13:29:43 +01:00
Sacha Greif
c1e1c68c23 disable polling; make posts.edit method work again; run refetch in NovaForms success callback 2016-11-02 19:56:44 +09:00
Sacha Greif
123da6b79d add latency compensation (a.k.a. optimistic UI) simulation for Telescope.operateOnItem; it now takes the item as argument (not the item _id) 2016-11-02 16:31:15 +09:00
xavcz
5d34f695e5 ApolloProvider wraps the route (and not the opposite), however store is not rehydrated -> loading state is server-side rendered :-/ 2016-11-01 11:45:44 +01:00
xavcz
328be8b07d define mutation postVote(postId: String, voteType: String), wire it to <Vote /> 2016-10-31 18:21:28 +01:00
xavcz
e78cbe523f telescope's graphql mutations extensible as schema and queries, re-enable context.actions.call with Meteor for now 2016-10-31 16:19:37 +01:00
Sacha Greif
0b2af51c89 split graphQL schemas in their respective packages 2016-10-29 16:37:33 +09:00
Sacha Greif
753eafc217 finish filtering resolvers 2016-10-29 16:17:14 +09:00
Sacha Greif
005d912222 filter fields in all resolvers 2016-10-29 16:02:43 +09:00
Sacha Greif
aa33585d2e Merge branch 'apollo' of https://github.com/TelescopeJS/Telescope into apollo 2016-10-29 14:21:40 +09:00
Sacha Greif
7533d67296 add viewableIf property to schemas to define which fields are viewable by which users; use it in resolver 2016-10-29 14:17:57 +09:00
xavcz
6eddc86c6e decouple ourselves from the apollo's meteor integration to handle it our way atm (ssr, query batching, latest updates) 2016-10-28 18:09:41 +02:00
xavcz
3c9c9673a3 add currentUser to schema/resolvers and give it to the AppContainer; re-enable canView/canEdit on CanDo comp (got broken at first migration to apollo); give back the document to custom FormComponent (used for example in the NewsletterButton in the account page) 2016-10-28 13:56:07 +02:00
Sacha Greif
7b3b37adc2 make user resolver take either id or slug; add UsersSingleContainer and use it for UsersAccount and UsersProfile 2016-10-28 16:22:07 +09:00
xavcz
4f31a06d41 re-enable search: add search query to Terms schema 2016-10-27 16:48:18 +02:00
Sacha Greif
2c8fca39b1 use PostsListContainer for PostsDay view (create new container for all days later?) 2016-10-27 15:36:11 +09:00
xavcz
ce3d33b0f0 work on loadMore (fetchMore -> updateQuery) on PostsHome: extends Terms schema input with cat, add postsViewTotal (cursor count) schema/resolver 2016-10-26 12:47:41 +02:00
Sacha Greif
3af91b00ee use terms argument instead of view (since view is contained inside terms anyway); add userIP etc. properties to post 2016-10-26 17:59:31 +09:00
xavcz
3bcecf5fc2 add variables to posts(view, offset, limit) graphql query -> linked to PostsHome 2016-10-25 13:13:25 +02:00
Sacha Greif
2a714894a5 use Apollo for PostsHome 2016-10-25 16:24:03 +09:00
xavcz
26f5e73119 more work on single post 2016-10-19 17:38:21 +02:00
xavcz
81ab2f45cd apollo data transport connected to client / mongo / server 2016-10-19 10:55:19 +02:00