Commit graph

81 commits

Author SHA1 Message Date
SachaG
3ca76c198c Preserve withSingle backwards-compatibility 2018-08-30 20:02:09 +09:00
SachaG
a388e1663f Renaming 2018-08-29 20:36:36 +09:00
SachaG
5d1a7d2c37 Replace documentId/slug with selector in single resolver 2018-08-29 20:36:30 +09:00
SachaG
910c932f61 Get rid of single argument level of indirection in mutations; add additional checks to avoid empty selectors 2018-08-07 16:20:24 +09:00
SachaG
b2fc0d0c5b Use Utils.pluralize function 2018-07-04 11:11:46 +02:00
SachaG
e0b540eeb1 Use callback ref; fix withMutation; handle errors with no path 2018-07-04 10:59:10 +02:00
SachaG
994c19a98d Make withMutation accept return fragmentName 2018-06-20 10:24:30 +09:00
SachaG
1d5d5b8ebc Small bugfixes, make selectors work with both _id and documentId 2018-06-17 12:30:37 +09:00
SachaG
32066e9c5a search -> selector 2018-06-14 23:00:28 +09:00
SachaG
60f47a5189 Various small fixes (thanks @justinr1234) 2018-06-08 13:31:15 +09:00
SachaG
a532dab9b7 singleInputTemplate should use selectorUniqueInputTemplate 2018-06-06 11:00:53 +09:00
SachaG
c8b57ab60e Fix withMulti 2018-06-06 07:36:25 +09:00
SachaG
84d08e9bf9 Adapt withCreate, withUpdate, withUpsert, withDelete 2018-06-05 16:07:38 +09:00
SachaG
20db318c40 More work on withMulti and withSingle 2018-06-05 12:12:04 +09:00
SachaG
809bdd05de Adapting withMulti and withSingle 2018-06-05 11:51:25 +09:00
SachaG
f3ba2cc59f Working on GraphQL template system for GraphQL schema generation 2018-06-04 11:22:49 +09:00
SachaG
96eab44309 Start CRUD renaming 2018-06-02 18:49:53 +09:00
SachaG
975155a843 Revert b6669a3 and add loadingInitial prop to be more explicit 2018-05-15 09:21:03 +09:00
SachaG
5c43de929c Fix withEdit imports; fix dropdown bug 2018-05-10 17:48:22 +09:00
Sacha Greif
cb0e8f5d5a
Merge pull request #1978 from Apollinaire/withAccess
check for redirect before trying to redirect
2018-05-09 07:59:33 +09:00
Apollinaire
5c15120113 check for redirect before trying to redirect
using `withAccess` without setting redirect used to crash the client because there was no test on `redirect`.  Current behaviour is: if redirect is not a string then no redirection is done and the component simply is not displayed.
2018-05-05 16:12:40 +02:00
Sacha Greif
9118d8f8ad
Merge pull request #1975 from Apollinaire/devel
withList Loading prop adjustment
2018-05-04 16:14:53 +09:00
Apollinaire
b6669a3f7e withList Loading improved
Follows the recommanded loading from Apollo. See the Apollo docs about `[data.networkstatus](https://www.apollographql.com/docs/react/api/react-apollo.html#graphql-query-data-networkStatus)` and `[data.loading](https://www.apollographql.com/docs/react/api/react-apollo.html#graphql-query-data-loading)`
2018-05-03 10:27:23 +02:00
Bernardo Dias
5b9bb61688 Update Flash component and withMessages container 2018-05-02 15:02:52 -03:00
ochicf
041eb4254d Mingo.Query is a class now, instantiate it with new 2018-03-14 12:20:30 +01:00
SachaG
e63c412198 Don't try to reorder items on vote (fix https://github.com/VulcanJS/Vulcan-Starter/issues/34) 2018-03-03 12:04:41 +09:00
SachaG
bf4aba4a32 Small clean up for withList and withDocument 2018-02-18 18:00:07 +09:00
SachaG
bb43a16e68 Revert "Pass an extraTerms argument to all extra queries"
This reverts commit ab8fd47d76.
2018-02-18 17:42:12 +09:00
SachaG
ab8fd47d76 Pass an extraTerms argument to all extra queries 2018-02-18 16:56:58 +09:00
SachaG
cee5fa6b6c Make currentUser available as a variable for withDocument and withList 2018-02-14 19:10:29 +09:00
SachaG
88c69b9d78 Pass down currentUserData 2018-02-08 12:21:45 +09:00
SachaG
ac838a65e4 Add notifyOnNetworkStatusChange option to withList 2018-02-05 10:45:20 +09:00
Justin Reynolds
0b9289d549 #1865 Fix upsert 2018-01-31 18:29:49 -06:00
Justin Reynolds
9212a1970e Add upsert mutation 2018-01-28 22:26:05 -06:00
Sacha Greif
8e507552df
Merge pull request #1851 from MHerszak/withEdit-withRemove
Added getCollection to withEdit & withRemove
2018-01-28 11:34:59 +09:00
Michel Herszak
f38d0ca3b0 Added getCollection to withEdit & withRemove 2018-01-27 19:11:03 -07:00
Sacha Greif
0e7b7297e7
Merge pull request #1850 from MHerszak/withNew
Added getCollection to withNew
2018-01-28 10:59:41 +09:00
Michel Herszak
392fdbd1ce Added getCollection to withNew 2018-01-27 18:53:28 -07:00
SachaG
8602bdcc27 Fix withDocument 2018-01-27 15:58:09 +09:00
Justin Reynolds
9cb5db5c67 Consolidate getCollection code 2018-01-26 22:00:36 -06:00
SachaG
832fd5198d Make withDocument accept collectionName too like withList 2018-01-27 12:42:12 +09:00
Justin Reynolds
75b6ece0a4 Fix linting 2018-01-25 15:03:03 -06:00
Justin Reynolds
020d970beb Fix circular dependency in example-forum 2018-01-25 12:53:19 -06:00
SachaG
4985ba2571 Fix withAccess 2018-01-25 18:12:32 +09:00
Luca Hagel
0f4eff8183 Use prop-types package in withDocument 2018-01-06 07:07:38 +01:00
Luca Hagel
bf5a67f790 Use prop-types package in withList 2018-01-06 07:06:48 +01:00
SachaG
6659bd14e6 Add support for throwing/showing "document not found" errors in withDocument and default resolvers 2018-01-04 09:41:48 +09:00
SachaG
c6d3911fd1 Small fixes 2018-01-02 13:05:34 +09:00
SachaG
20e8bab810 fix typo 2017-12-30 10:56:54 +09:00
SachaG
79b38f4d03 withAccess 2017-12-30 10:52:11 +09:00